|
@@ -224,7 +224,7 @@ struct cred *cred_alloc_blank(void)
|
|
#ifdef CONFIG_KEYS
|
|
#ifdef CONFIG_KEYS
|
|
new->tgcred = kzalloc(sizeof(*new->tgcred), GFP_KERNEL);
|
|
new->tgcred = kzalloc(sizeof(*new->tgcred), GFP_KERNEL);
|
|
if (!new->tgcred) {
|
|
if (!new->tgcred) {
|
|
- kfree(new);
|
|
|
|
|
|
+ kmem_cache_free(cred_jar, new);
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
atomic_set(&new->tgcred->usage, 1);
|
|
atomic_set(&new->tgcred->usage, 1);
|