summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xdr.c
diff options
context:
space:
mode:
authorJeff Layton2014-12-13 15:11:39 +0100
committerJ. Bruce Fields2015-01-07 19:38:21 +0100
commit94ae1db226a5bcbb48372d81161f084c9e283fd8 (patch)
tree696ef809d14d51b48112195e06dbf7bd599807c4 /net/sunrpc/xdr.c
parentLinux 3.19-rc3 (diff)
downloadkernel-qcow2-linux-94ae1db226a5bcbb48372d81161f084c9e283fd8.tar.gz
kernel-qcow2-linux-94ae1db226a5bcbb48372d81161f084c9e283fd8.tar.xz
kernel-qcow2-linux-94ae1db226a5bcbb48372d81161f084c9e283fd8.zip
nfsd: fix fi_delegees leak when fi_had_conflict returns true
Currently, nfs4_set_delegation takes a reference to an existing delegation and then checks to see if there is a conflict. If there is one, then it doesn't release that reference. Change the code to take the reference after the check and only if there is no conflict. Signed-off-by: Jeff Layton <jlayton@primarydata.com> Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xdr.c')
0 files changed, 0 insertions, 0 deletions