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

Commit 004c3cf1 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

cxgb4: fix error return code in adap_init0()



Fix to return a negative error code from the hash filter init error
handling case instead of 0, as done elsewhere in this function.

Fixes: 5c31254e ("cxgb4: initialize hash-filter configuration")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 18845557
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4449,7 +4449,8 @@ static int adap_init0(struct adapter *adap)
		adap->params.ofldq_wr_cred = val[5];

		if (caps_cmd.niccaps & htons(FW_CAPS_CONFIG_NIC_HASHFILTER)) {
			if (init_hash_filter(adap) < 0)
			ret = init_hash_filter(adap);
			if (ret < 0)
				goto bye;
		} else {
			adap->params.offload = 1;