]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:24 +0000 (09:48 +0100)
commit26e8addf81cadb154d731fa44d28b8dc4596e05d
tree70003d9109f1b72d7f08bcd286a77e8ac1f96939
parentc85dd9849a862c5adf4d4f1948eb5c684bbb8f74
nvme-rdma: fix error code in nvme_rdma_setup_ctrl

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 09748122009aed7bfaa7acc33c10c083a4758322 ]

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: c66e2998c8ca ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/nvme/host/rdma.c