ath79: add support for Dell SonicPoint ACe APL26-0AE
[openwrt/openwrt.git] / target / linux / generic / backport-5.15 / 728-v6.1-01-net-ethernet-mtk_eth_soc-fix-possible-memory-leak-in.patch
index c419fc8130e090284b042c1375194942de59ab41..cad32043541ebce2cc3f9c1edb3f8872f5968f1f 100644 (file)
@@ -17,7 +17,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
 
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -4008,19 +4008,23 @@ static int mtk_probe(struct platform_dev
+@@ -4006,19 +4006,23 @@ static int mtk_probe(struct platform_dev
                        eth->irq[i] = platform_get_irq(pdev, i);
                if (eth->irq[i] < 0) {
                        dev_err(&pdev->dev, "no IRQ%d resource found\n", i);
@@ -45,7 +45,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
                        }
                        eth->clks[i] = NULL;
                }
-@@ -4031,7 +4035,7 @@ static int mtk_probe(struct platform_dev
+@@ -4029,7 +4033,7 @@ static int mtk_probe(struct platform_dev
  
        err = mtk_hw_init(eth);
        if (err)
@@ -54,7 +54,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  
        eth->hwlro = MTK_HAS_CAPS(eth->soc->caps, MTK_HWLRO);
  
-@@ -4129,6 +4133,8 @@ err_free_dev:
+@@ -4127,6 +4131,8 @@ err_free_dev:
        mtk_free_dev(eth);
  err_deinit_hw:
        mtk_hw_deinit(eth);
@@ -63,7 +63,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  
        return err;
  }
-@@ -4148,6 +4154,7 @@ static int mtk_remove(struct platform_de
+@@ -4146,6 +4152,7 @@ static int mtk_remove(struct platform_de
                phylink_disconnect_phy(mac->phylink);
        }