[PATCH] knfsd: Don't ignore kstrdup failure in rpc caches
Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
27d630ece0
commit
dd08d6ea44
@ -53,6 +53,10 @@ struct auth_domain *unix_domain_find(char *name)
|
||||
return NULL;
|
||||
kref_init(&new->h.ref);
|
||||
new->h.name = kstrdup(name, GFP_KERNEL);
|
||||
if (new->h.name == NULL) {
|
||||
kfree(new);
|
||||
return NULL;
|
||||
}
|
||||
new->h.flavour = &svcauth_unix;
|
||||
new->addr_changes = 0;
|
||||
rv = auth_domain_lookup(name, &new->h);
|
||||
|
Loading…
Reference in New Issue
Block a user