diff options
author | NeilBrown <neilb@suse.de> | 2006-12-13 00:35:44 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-13 09:05:54 -0800 |
commit | dd08d6ea443abafe9455997d2889719364b8794b (patch) | |
tree | fdf69456d67f20cd384a2f7ff78ea88a5e262615 /net | |
parent | 27d630ece08ae15e35d54201665c247a9fae584c (diff) | |
download | linux-stable-dd08d6ea443abafe9455997d2889719364b8794b.tar.gz linux-stable-dd08d6ea443abafe9455997d2889719364b8794b.tar.bz2 linux-stable-dd08d6ea443abafe9455997d2889719364b8794b.zip |
[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>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/svcauth_unix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c index 177f81608cfb..0d1e8fb83b93 100644 --- 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); |