projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad18e20
)
RDMA/hns: Add return operation when configured global param fail
author
oulijun
<oulijun@huawei.com>
Fri, 4 May 2018 02:57:07 +0000
(10:57 +0800)
committer
Doug Ledford
<dledford@redhat.com>
Wed, 9 May 2018 14:45:18 +0000
(10:45 -0400)
When configure global param function run fail, it should directly return
and the initial flow will stop.
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index 50f55bd2c75f9c8b54d941350f44a10eb31db1b7..539b0caacb9fa9e8e32a1229c3432f19e3bda905 100644
(file)
--- a/
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@
-1085,6
+1085,7
@@
static int hns_roce_v2_profile(struct hns_roce_dev *hr_dev)
if (ret) {
dev_err(hr_dev->dev, "Configure global param fail, ret = %d.\n",
ret);
+ return ret;
}
/* Get pf resource owned by every pf */