]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd: fix error values returned by nfsd4_lockt() when nfsd_open() fails
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 Apr 2012 04:00:04 +0000 (00:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 17:16:52 +0000 (10:16 -0700)
commit211e68baa6b2f5a5b5f0cbae29090381a1cecb00
tree0df76b5a6f286a82f4ab80b5d91b39ad694c8afe
parent197ee6f87b5621edd549122dab9dd0b9645253ff
nfsd: fix error values returned by nfsd4_lockt() when nfsd_open() fails

commit 04da6e9d63427b2d0fd04766712200c250b3278f upstream.

nfsd_open() already returns an NFS error value; only vfs_test_lock()
result needs to be fed through nfserrno().  Broken by commit 55ef12
(nfsd: Ensure nfsv4 calls the underlying filesystem on LOCKT)
three years ago...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4state.c