Commit 4fdb28d8 authored by liyangyang20's avatar liyangyang20 Committed by Xie XiuQi
Browse files

RDMA/hns: Fix a static checker warning for hip08



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

Dan Carpenter provide a bug report about the patch 6a04aed6:
"RDMA/hns: Fix the chip hanging caused by sending mailbox&CMQ
during reset" from Feb 3, 2019, which leads to the
following static checker warning:

drivers/infiniband/hw/hns/hns_roce_qp.c:940 hns_roce_create_qp()
error: passing non negative 2 to ERR_PTR

The number "2" comes from hns_roce_cmq_send(), These should be -EBUSY.

Feature or Bugfix:Bugfix

Signed-off-by: default avatarliyangyang (M) <liyangyang20@huawei.com>
Reviewed-by: default avataroulijun <oulijun@huawei.com>
Reviewed-by: default avatarliuyixian <liuyixian@huawei.com>
Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 08642c11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment