]> git.baikalelectronics.ru Git - kernel.git/commit
crypto/chtls: Fix chtls crash in connection cleanup
authorRohit Maheshwari <rohitm@chelsio.com>
Mon, 30 Mar 2020 16:55:55 +0000 (22:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 17:44:08 +0000 (10:44 -0700)
commitb2e526e53082bdaeafaf95e3d421c8c488765ffb
treefe81122886182b112b8ec24f7eb34c8697a4c6b6
parent51d61dcfcd2641f8a0bbb82d2b3c3753c9d09c4a
crypto/chtls: Fix chtls crash in connection cleanup

There is a possibility that cdev is removed before CPL_ABORT_REQ_RSS
is fully processed, so it's better to save it in skb.

Added checks in handling the flow correctly, which suggests connection reset
request is sent to HW, wait for HW to respond.

Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/chelsio/chtls/chtls_cm.c