]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvmet-tcp: always initialize tls_handshake_tmo_work
authorHannes Reinecke <hare@suse.de>
Fri, 20 Oct 2023 05:06:06 +0000 (07:06 +0200)
committerKeith Busch <kbusch@kernel.org>
Mon, 20 Nov 2023 17:25:33 +0000 (09:25 -0800)
commit11b9d0b4999705105d1fb7f0e8ac969e0f41b1b8
treeb6f058646ac2a6c2f901643c26da52018e552229
parent1c22e0295a5eb571c27b53c7371f95699ef705ff
nvmet-tcp: always initialize tls_handshake_tmo_work

The TLS handshake timeout work item should always be
initialized to avoid a crash when cancelling the workqueue.

Fixes: 675b453e0241 ("nvmet-tcp: enable TLS handshake upcall")
Suggested-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Tested-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/tcp.c