aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ux500
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2011-07-26 16:08:41 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-16 14:14:54 -0700
commit2b7eea63de50d738ae12a1bf84b76ef91c007a0e (patch)
treeec24a34af3ec3ae142b0d2c84e22d7b264326b30 /arch/arm/mach-ux500
parent6770fa9b440e57ea2a7c586063c5c30da2933513 (diff)
downloadkernel_samsung_smdk4412-2b7eea63de50d738ae12a1bf84b76ef91c007a0e.zip
kernel_samsung_smdk4412-2b7eea63de50d738ae12a1bf84b76ef91c007a0e.tar.gz
kernel_samsung_smdk4412-2b7eea63de50d738ae12a1bf84b76ef91c007a0e.tar.bz2
exec: do not call request_module() twice from search_binary_handler()
commit 912193521b719fbfc2f16776febf5232fe8ba261 upstream. Currently, search_binary_handler() tries to load binary loader module using request_module() if a loader for the requested program is not yet loaded. But second attempt of request_module() does not affect the result of search_binary_handler(). If request_module() triggered recursion, calling request_module() twice causes 2 to the power of MAX_KMOD_CONCURRENT (= 50) repetitions. It is not an infinite loop but is sufficient for users to consider as a hang up. Therefore, this patch changes not to call request_module() twice, making 1 to the power of MAX_KMOD_CONCURRENT repetitions in case of recursion. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Reported-by: Richard Weinberger <richard@nod.at> Tested-by: Richard Weinberger <richard@nod.at> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Maxim Uvarov <muvarov@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/mach-ux500')
0 files changed, 0 insertions, 0 deletions