Commit 4ee63624 authored by J. Bruce Fields's avatar J. Bruce Fields

nfsd4: fix struct file leak on delegation

Introduced by acfdf5c3.

Cc: stable@kernel.org
Reported-by: default avatarGerhard Heift <ml-nfs-linux-20110412-ef47@gheift.de>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent a6360dd3
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment