You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
net: thunderx: Fix error return code in nicvf_open()
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Fixes: 712c318534 ("net: thunderx: Program LMAC credits based on MTU")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b40296fc73
commit
60dce04b81
@@ -1274,7 +1274,8 @@ int nicvf_open(struct net_device *netdev)
|
||||
/* Configure receive side scaling and MTU */
|
||||
if (!nic->sqs_mode) {
|
||||
nicvf_rss_init(nic);
|
||||
if (nicvf_update_hw_max_frs(nic, netdev->mtu))
|
||||
err = nicvf_update_hw_max_frs(nic, netdev->mtu);
|
||||
if (err)
|
||||
goto cleanup;
|
||||
|
||||
/* Clear percpu stats */
|
||||
|
||||
Reference in New Issue
Block a user