ch_ktls: lock is not freed
authorRohit Maheshwari <rohitm@chelsio.com>
Wed, 25 Nov 2020 07:26:26 +0000 (12:56 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Nov 2020 01:44:42 +0000 (17:44 -0800)
commitcbf3d60329c4e11edcecac0c8fc6767b0f05e3a7
tree539ba7fbf9d984b0aa17ed54a364878963cc3a46
parent025cc2fb6a4e84e9a0552c0017dcd1c24b7ac7da
ch_ktls: lock is not freed

Currently lock gets freed only if timeout expires, but missed a
case when HW returns failure and goes for cleanup.

Fixes: efca3878a5fb ("ch_ktls: Issue if connection offload fails")
Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Link: https://lore.kernel.org/r/20201125072626.10861-1-rohitm@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c