]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:35 +0000 (13:42 -0400)
commitd6244c787f103b95e0f68283c8546afeaa7b046a
treeef222a07d7120bfa6bbecaac97d42daca693851d
parent314b9cf3be0a02e5866f2a45e1d259cbff042dc2
nfsd: fix the check for confirmed openowner in nfs4_preprocess_stateid_op

[ Upstream commit ebe9cb3bb13e7b9b281969cd279ce70834f7500f ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/nfsd/nfs4state.c