Fix unbalanced helper_lock in kernel/kmod.c
authorNigel Cunningham <nigel@nigel.suspend2.net>
Thu, 17 Jan 2008 23:21:21 +0000 (15:21 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 17 Jan 2008 23:38:59 +0000 (15:38 -0800)
commit784680336b616dcc4c17cbd25add3b49c555cdeb
treee607ed69188a99590a7708c922500882702b8578
parent34aebfd3bdc93c0c5614f1f61e43b6ddc4be52ae
Fix unbalanced helper_lock in kernel/kmod.c

call_usermodehelper_exec() has an exit path that can leave the
helper_lock() call at the top of the routine unbalanced.  The attached
patch fixes this issue.

Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kmod.c