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)
commit3a0a978389234995b64a8b8fbe343115bffb1551
treefe81122886182b112b8ec24f7eb34c8697a4c6b6
parente14394e656855c218c0c6cf918c550d5fdc1401d
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