Skip to content

Commit 98647df

Browse files
Kalesh APjgunthorpe
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/[email protected] Signed-off-by: Kalesh AP <[email protected]> Signed-off-by: Selvin Xavier <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 87b4d8d commit 98647df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)