automount: check for recursive automount
automount_mount calls run_command which may trigger an automount
again. This results in an endless loop. A simple way to trigger
this is:

mkdir /x; automount /x false; cd /x; something

Use a static variable to detect if we are currently in automount_mount()
and bail out if we are.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 477199c commit 621266d3a4e8c70b305d3194080d6402ca97e1ac
@Sascha Hauer Sascha Hauer authored on 3 Jul 2014
Showing 1 changed file
View
fs/fs.c