chelsio/chtls: fix panic during unload reload chtls
authorVinay Kumar Yadav <vinay.yadav@chelsio.com>
Wed, 25 Nov 2020 21:49:14 +0000 (03:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Dec 2020 09:42:01 +0000 (10:42 +0100)
commit5a0a5d6881a0dfb3e2d386ef00447107f37e489a
tree8af94a60104afafe06215e5d4583361966930f3f
parentdab3f44c5fa84719d6e6eff8d31c6e478703ce56
chelsio/chtls: fix panic during unload reload chtls

[ Upstream commit e3d5e971d2f83d8ddd4b91a50cea4517fb488383 ]

there is kernel panic in inet_twsk_free() while chtls
module unload when socket is in TIME_WAIT state because
sk_prot_creator was not preserved on connection socket.

Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition")
Signed-off-by: Udai Sharma <udai.sharma@chelsio.com>
Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
Link: https://lore.kernel.org/r/20201125214913.16938-1-vinay.yadav@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/chelsio/chtls/chtls_cm.c