projects
/
wrapfs-3.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da0309a
)
nfsd4: fix struct file leak on delegation
author
J. Bruce Fields
<bfields@redhat.com>
Fri, 15 Apr 2011 22:08:26 +0000
(18:08 -0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 2 May 2011 16:19:34 +0000
(09:19 -0700)
commit
4ee63624fd927376b97ead3a8d00728d437bc8e8
upstream.
Introduced by
acfdf5c383b38f7f4dddae41b97c97f1ae058f49
.
Reported-by: Gerhard Heift <ml-nfs-linux-20110412-ef47@gheift.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfsd/nfs4state.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/nfs4state.c
b/fs/nfsd/nfs4state.c
index 96aaaa47fd0a313409e0f040d3a8796569915272..201915af6864dff517c75efb97f446b4251f53f0 100644
(file)
--- a/
fs/nfsd/nfs4state.c
+++ b/
fs/nfsd/nfs4state.c
@@
-258,6
+258,7
@@
static void nfs4_put_deleg_lease(struct nfs4_file *fp)
if (atomic_dec_and_test(&fp->fi_delegees)) {
vfs_setlease(fp->fi_deleg_file, F_UNLCK, &fp->fi_lease);
fp->fi_lease = NULL;
+ fput(fp->fi_deleg_file);
fp->fi_deleg_file = NULL;
}
}