]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: fix error code in nvme_rdma_setup_ctrl
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Sun, 17 Oct 2021 08:58:16 +0000 (11:58 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Oct 2021 17:16:03 +0000 (19:16 +0200)
commite06bee3ee9d2efea0798fd4061a20c83295e5009
treecc6f84b40e331f54cf4c317e3283895f5081f8af
parent546840ef01b9e1596503519669bf64c3690184de
nvme-rdma: fix error code in nvme_rdma_setup_ctrl

In case that icdoff is not zero or mandatory keyed sgls are not
supported by the NVMe/RDMA target, we'll go to error flow but we'll
return 0 to the caller. Fix it by returning an appropriate error code.

Fixes: 11702b733d87 ("nvme-rdma: centralize controller setup sequence")
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c