Skip to content

Commit 98647df

Browse files
kaleshap86jgunthorpe
authored andcommitted
RDMA/bnxt_re: Return more meaningful error
When the HWRM command fails, driver currently returns -EFAULT(Bad address). This does not look correct. Modified to return -EIO(I/O error). Fixes: cc1ec76 ("RDMA/bnxt_re: Fixing the Control path command and response handling") Fixes: 65288a2 ("RDMA/bnxt_re: use shadow qd while posting non blocking rcfw command") Link: https://patch.msgid.link/r/1728373302-19530-5-git-send-email-selvin.xavier@broadcom.com Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 87b4d8d commit 98647df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/infiniband/hw/bnxt_re/qplib_rcfw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ static int __bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw,
525525
/* failed with status */
526526
dev_err(&rcfw->pdev->dev, "cmdq[%#x]=%#x status %#x\n",
527527
cookie, opcode, evnt->status);
528-
rc = -EFAULT;
528+
rc = -EIO;
529529
}
530530

531531
return rc;

0 commit comments

Comments
 (0)