kmod: Release sub_info on cred allocation failure.
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Tue, 26 May 2009 08:11:03 +0000 (09:11 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 May 2009 19:11:19 +0000 (12:11 -0700)
commitab2b7ebaad16226c9a5e85c5f384d19fa58a7459
treec7a700d9300dca0855721b3a15db150ae5d86f1b
parentd4a76f8a619b5d7dfd5a0f122666fee24bb3dcb9
kmod: Release sub_info on cred allocation failure.

call_usermodehelper_setup() forgot to kfree(sub_info)
when prepare_usermodehelper_creds() failed.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kmod.c