Message ID | 20221114082048.49450-3-lanhao@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 29df7c695ed67a8fa32bb7805bad8fe2a76c1f88 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: hns3: This series bugfix for the HNS3 ethernet driver. | expand |
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 7fc83409f257..028577943ec5 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -3778,8 +3778,8 @@ static void hns3_nic_reuse_page(struct sk_buff *skb, int i, desc_cb->reuse_flag = 1; } else if (frag_size <= ring->rx_copybreak) { ret = hns3_handle_rx_copybreak(skb, i, ring, pull_len, desc_cb); - if (ret) - goto out; + if (!ret) + return; } out: