]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bd2aa636d6d98d7d3790cff31035b7565a3c222
tree36b7416e6f7bcf4dd5c607fb1f6bbfe831420658
parente83ce4356478de95265b829a3b8bf746c4bcfed0
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