]> 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)
commitbf9d4b689478df36c516b305b4d2c5856b05ef92
treefe81122886182b112b8ec24f7eb34c8697a4c6b6
parent0896c8e685965c6306a898cf6d30088b5a7e635f
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