Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2349fdd4 authored by oulijun's avatar oulijun Committed by Doug Ledford
Browse files

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: default avatarLijun Ou <oulijun@huawei.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent ad18e20b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 */