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)
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

Simple merge