commit | 09748122009aed7bfaa7acc33c10c083a4758322 | [log] [tgz] |
---|---|---|
author | Max Gurtovoy <mgurtovoy@nvidia.com> | Sun Oct 17 11:58:16 2021 +0300 |
committer | Christoph Hellwig <hch@lst.de> | Wed Oct 20 19:16:03 2021 +0200 |
tree | cc6f84b40e331f54cf4c317e3283895f5081f8af | |
parent | 11384580e3322b41dbaa68dbcd949af875b8aa22 [diff] |
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: 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>