9p: trans_fd/p9_conn_cancel: drop client lock earlier
authorDominique Martinet <asmadeus@codewreck.org>
Wed, 17 Aug 2022 05:58:44 +0000 (14:58 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Nov 2022 08:24:50 +0000 (09:24 +0100)
commita4f1a01b2e81378fce9ca528d4d8a049e4b58fcd
tree42c69928a5d5906979278f9074dff689e0f3265d
parentf7b0e95071bb4be4b811af3f0bfc3e200eedeaa3
9p: trans_fd/p9_conn_cancel: drop client lock earlier

commit 52f1c45dde9136f964d63a77d19826c8a74e2c7f upstream.

syzbot reported a double-lock here and we no longer need this
lock after requests have been moved off to local list:
just drop the lock earlier.

Link: https://lkml.kernel.org/r/20220904064028.1305220-1-asmadeus@codewreck.org
Reported-by: syzbot+50f7e8d06c3768dd97f3@syzkaller.appspotmail.com
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Tested-by: Schspa Shi <schspa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/9p/trans_fd.c