mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
chelsio/chtls: fix socket lock
[ Upstream commit0fb5f0160a] In chtls_sendpage() socket lock is released but not acquired, fix it by taking lock. Fixes:36bedb3f2e("crypto: chtls - Inline TLS record Tx") Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
750e81e2db
commit
fe97af291f
@@ -1210,6 +1210,7 @@ int chtls_sendpage(struct sock *sk, struct page *page,
|
||||
copied = 0;
|
||||
csk = rcu_dereference_sk_user_data(sk);
|
||||
cdev = csk->cdev;
|
||||
lock_sock(sk);
|
||||
timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT);
|
||||
|
||||
err = sk_stream_wait_connect(sk, &timeo);
|
||||
|
||||
Reference in New Issue
Block a user