commit | b417c0879db72f810ca81d88b719e70d20566857 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Jun 08 12:27:14 2019 +0300 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Tue Jun 25 10:21:13 2019 -0300 |
tree | 960ef4c8d3385ca05714d5ac5e21edfab65a2700 | |
parent | 7ef7587541d49c6de1c9650c3c819a7fdd7ade66 [diff] |
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>