nvme-tcp: fix possible null deref on a timed out io queue connect
authorSagi Grimberg <sagi@grimberg.me>
Mon, 29 Apr 2019 23:25:48 +0000 (16:25 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 May 2019 13:17:15 +0000 (09:17 -0400)
commitf34e25898a608380a60135288019c4cb6013bec8
treed95adcdb665a4af0438de4bcc1e88b4d80c87360
parent2d5abb9a1e8e92b25e781f0c3537a5b3b4b2f033
nvme-tcp: fix possible null deref on a timed out io queue connect

If I/O queue connect times out, we might have freed the queue socket
already, so check for that on the error path in nvme_tcp_start_queue.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c