projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a49c3c7
)
NFSv4: Fix an rpc_cred reference leakage in fs/nfs/delegation.c
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 18 Oct 2007 23:59:20 +0000
(19:59 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 19 Oct 2007 21:19:30 +0000
(17:19 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/delegation.c
patch
|
blob
|
history
diff --git
a/fs/nfs/delegation.c
b/fs/nfs/delegation.c
index af8b235d405dba2ea74c260fd13aba31a5ac46f1..11833f4caeaa9a2ea5549675636330a689c0e80b 100644
(file)
--- a/
fs/nfs/delegation.c
+++ b/
fs/nfs/delegation.c
@@
-168,7
+168,8
@@
int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct
spin_unlock(&inode->i_lock);
spin_unlock(&clp->cl_lock);
- kfree(delegation);
+ if (delegation != NULL)
+ nfs_free_delegation(delegation);
return status;
}