]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: unlock on error in manage_cpntf_state()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Dec 2019 07:59:36 +0000 (10:59 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 9 Dec 2019 16:44:07 +0000 (11:44 -0500)
commitc6ae5999a0530ea8a976e28e3829f14c2f2adece
treee3a0114a1f3d6cf6e50f1c8f11c441c40ae1216a
parent4026a28991fdfea544c770049023fe3bb131823e
nfsd: unlock on error in manage_cpntf_state()

We are holding the "nn->s2s_cp_lock" so we can't return directly
without unlocking first.

Fixes: f3dee17721a0 ("NFSD check stateids against copy stateids")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c