nfsd: fix the check for confirmed openowner in nfs4_preprocess_stateid_op
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Apr 2015 13:41:15 +0000 (15:41 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 4 May 2015 16:02:38 +0000 (12:02 -0400)
commitebe9cb3bb13e7b9b281969cd279ce70834f7500f
tree36b7416e6f7bcf4dd5c607fb1f6bbfe831420658
parent40cdc7a530c7a075557651a071354bb42b99df08
nfsd: fix the check for confirmed openowner in nfs4_preprocess_stateid_op

If we find a non-confirmed openowner we jump to exit the function, but do
not set an error value.  Fix this by factoring out a helper to do the
check and properly set the error from nfsd4_validate_stateid.

Cc: stable@vger.kernel.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c