Commit 6959a630 authored by Petri T. Koistinen's avatar Petri T. Koistinen Committed by Stephen Hemminger

[SUNRPC]: Missing NULL kmalloc check in unix_domain_find().

parent b3b62b7f
...@@ -51,6 +51,8 @@ struct auth_domain *unix_domain_find(char *name) ...@@ -51,6 +51,8 @@ struct auth_domain *unix_domain_find(char *name)
return rv; return rv;
new = kmalloc(sizeof(*new), GFP_KERNEL); new = kmalloc(sizeof(*new), GFP_KERNEL);
if (new == NULL)
return NULL;
cache_init(&new->h.h); cache_init(&new->h.h);
atomic_inc(&new->h.h.refcnt); atomic_inc(&new->h.h.refcnt);
new->h.name = strdup(name); new->h.name = strdup(name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment