projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27d630e
)
[PATCH] knfsd: Don't ignore kstrdup failure in rpc caches
author
NeilBrown
<neilb@suse.de>
Wed, 13 Dec 2006 08:35:44 +0000
(
00:35
-0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Wed, 13 Dec 2006 17:05:54 +0000
(09:05 -0800)
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
net/sunrpc/svcauth_unix.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/svcauth_unix.c
b/net/sunrpc/svcauth_unix.c
index 177f81608cfbaa1fd983b2b22497a74c58f96b67..0d1e8fb83b930ee4e9e472d07e2f265875389b02 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);