diff options
author | oulijun <oulijun@huawei.com> | 2018-05-04 10:57:07 +0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-05-09 10:45:18 -0400 |
commit | 2349fdd483ea933b223f3eca53ed42835383d316 (patch) | |
tree | f5e8a93dd1e75b8f8c52ea8789ee344e2c10dec8 /drivers/infiniband | |
parent | ad18e20ba2887e221e903d311f4c9a1586eacffb (diff) | |
download | linux-2349fdd483ea933b223f3eca53ed42835383d316.tar.gz linux-2349fdd483ea933b223f3eca53ed42835383d316.tar.bz2 linux-2349fdd483ea933b223f3eca53ed42835383d316.zip |
RDMA/hns: Add return operation when configured global param fail
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 50f55bd2c75f..539b0caacb9f 100644 --- 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 */ |