RDMA/hns: Fix an error code in hns_roce_set_user_sq_size()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 8 Jun 2019 09:27:14 +0000 (12:27 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 25 Jun 2019 13:21:13 +0000 (10:21 -0300)
commitb417c0879db72f810ca81d88b719e70d20566857
tree960ef4c8d3385ca05714d5ac5e21edfab65a2700
parent7ef7587541d49c6de1c9650c3c819a7fdd7ade66
RDMA/hns: Fix an error code in hns_roce_set_user_sq_size()

This function is supposed to return negative kernel error codes but here
it returns CMD_RST_PRC_EBUSY (2).  The error code eventually gets passed
to IS_ERR() and since it's not an error pointer it leads to an Oops in
hns_roce_v1_rsv_lp_qp()

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c