From: David Howells Date: Fri, 9 Jan 2009 16:13:41 +0000 (+0000) Subject: CRED: Missing put_cred() in prepare_kernel_cred() X-Git-Tag: v2.6.29-rc1~37 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0de336814107358bc8c4173bf9ce2d42445173fe;p=linux-2.6-omap-h63xx.git CRED: Missing put_cred() in prepare_kernel_cred() Missing put_cred() in the error handling path of prepare_kernel_cred(). Signed-off-by: David Howells Acked-by: Steve Dickson Signed-off-by: Linus Torvalds --- diff --git a/kernel/cred.c b/kernel/cred.c index ff7bc071991..fc222e4acfb 100644 --- a/kernel/cred.c +++ b/kernel/cred.c @@ -529,6 +529,7 @@ struct cred *prepare_kernel_cred(struct task_struct *daemon) error: put_cred(new); + put_cred(old); return NULL; } EXPORT_SYMBOL(prepare_kernel_cred);