]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: fix a NULL deref when an admin connect times out
authorSagi Grimberg <sagi@grimberg.me>
Wed, 24 Apr 2019 18:53:18 +0000 (11:53 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Apr 2019 14:51:39 +0000 (16:51 +0200)
commitd15e330ebaf6c1e25597dfce4f3b0ba5314a679b
tree38da90bb87de55fa103ea5c8bbe953a6dd45c172
parentb7f7f2e87ff5896f2d5e40e5da6e5082255f4a9e
nvme-rdma: fix a NULL deref when an admin connect times out

If we timeout the admin startup sequence we might not yet have
an I/O tagset allocated which causes the teardown sequence to crash.
Make nvme_tcp_teardown_io_queues safe by not iterating inflight tags
if the tagset wasn't allocated.

Fixes: 9b103e819282 ("nvme-rdma: fix timeout handler")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c