nfsd: fix error values returned by nfsd4_lockt() when nfsd_open() fails
commite840ed85f05ecddb718b6e83373974453aedb9a5
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 Apr 2012 04:00:04 +0000 (13 00:00 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:11 +0000 (11 13:14 +0100)
treea51d1ac93caeaf33131c95896e1563fcfb1077aa
parent0d476b05b6ca6709547c729fd19f4b82f7020fdd
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: Ben Hutchings <ben@decadent.org.uk>
fs/nfsd/nfs4state.c