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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Feb 2008 20:01:46 +0000 (12:01 -0800)
commit03fce1f0345c212fd835bb764d161810b0e6bdd4
treee9b4bdf0e28c269368793d320cadf443701c7330
parent30f7ec38c20ec15019fd9a4566391253f139843c
Fix unbalanced helper_lock in kernel/kmod.c

patch 784680336b616dcc4c17cbd25add3b49c555cdeb in mainline.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/kmod.c