]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-tcp: Add warning on state change failure at nvme_tcp_setup_ctrl
authorIsrael Rukshin <israelr@mellanox.com>
Tue, 24 Mar 2020 15:29:45 +0000 (17:29 +0200)
committerKeith Busch <kbusch@kernel.org>
Wed, 25 Mar 2020 19:51:56 +0000 (04:51 +0900)
commit884a8d4489014c603ce54113c0941fc83c3382a5
treec76af6a3fb23da03ef027428c47f2c15a578310b
parent731b1ead34fe455330624e0bdb44c9533c893ced
nvme-tcp: Add warning on state change failure at nvme_tcp_setup_ctrl

The transition to LIVE state should not fail in case of a new controller.
Moving to DELETING state before nvme_tcp_create_ctrl() allocates all the
resources may leads to NULL dereference at teardown flow (e.g., IO tagset,
admin_q, connect_q).

Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/tcp.c