OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12dfd08
)
NFSv4: Ensure that nfs4_alloc_client cleans up on error.
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Mon, 20 Aug 2012 16:12:29 +0000
(12:12 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Mon, 20 Aug 2012 16:12:29 +0000
(12:12 -0400)
Any pointer that was allocated through nfs_alloc_client() needs to be
freed via a call to nfs_free_client().
Reported-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4client.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4client.c
b/fs/nfs/nfs4client.c
index
cbcdfaf
..
24eb663
100644
(file)
--- a/
fs/nfs/nfs4client.c
+++ b/
fs/nfs/nfs4client.c
@@
-74,7
+74,7
@@
struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *cl_init)
return clp;
error:
-
kfree
(clp);
+
nfs_free_client
(clp);
return ERR_PTR(err);
}