Merge branch 'master' into export-slabh
This commit is contained in:
@ -365,7 +365,7 @@ struct cred *prepare_usermodehelper_creds(void)
|
||||
|
||||
new = kmem_cache_alloc(cred_jar, GFP_ATOMIC);
|
||||
if (!new)
|
||||
return NULL;
|
||||
goto free_tgcred;
|
||||
|
||||
kdebug("prepare_usermodehelper_creds() alloc %p", new);
|
||||
|
||||
@ -398,6 +398,10 @@ struct cred *prepare_usermodehelper_creds(void)
|
||||
|
||||
error:
|
||||
put_cred(new);
|
||||
free_tgcred:
|
||||
#ifdef CONFIG_KEYS
|
||||
kfree(tgcred);
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user