projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik...
[powerpc.git]
/
net
/
sunrpc
/
svcauth_unix.c
diff --git
a/net/sunrpc/svcauth_unix.c
b/net/sunrpc/svcauth_unix.c
index
177f816
..
0d1e8fb
100644
(file)
--- a/
net/sunrpc/svcauth_unix.c
+++ b/
net/sunrpc/svcauth_unix.c
@@
-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);