aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2013-11-18 05:07:47 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-29 10:50:35 -0800
commit107bb3cc6b12d800f9949f5ecae808caae38a9f5 (patch)
tree66ebf2132601b2892acf0e6a9b81c6f3bec43341 /net/unix/sysctl_net_unix.c
parent6ee4fd261478ff5eed6b83cb5a18421c01707ad3 (diff)
nfsd: make sure to balance get/put_write_access
commit 987da4791052fa298b7cfcde4dea9f6f2bbc786b upstream. Use a straight goto error label style in nfsd_setattr to make sure we always do the put_write_access call after we got it earlier. Note that the we have been failing to do that in the case nfsd_break_lease() returns an error, a bug introduced into 2.6.38 with 6a76bebefe15d9a08864f824d7f8d5beaf37c997 "nfsd4: break lease on nfsd setattr". Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions