projects
/
linux-flexiantxendom0-natty.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f340920
)
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
Steve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:23:00 +0000
(14:23 -0500)
BugLink: http://bugs.launchpad.net/bugs/775809
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/nfsd/nfs4state.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/nfs4state.c
b/fs/nfsd/nfs4state.c
index
96aaaa4
..
201915a
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;
}
}