Skip to content

Commit 3e13274

Browse files
jhovoldkuba-moo
authored andcommitted
net: mtk_eth_soc: fix device leak at probe
The reference count to the WED devices has already been incremented when looking them up using of_find_device_by_node() so drop the bogus additional reference taken during probe. Fixes: 804775d ("net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED)") Cc: stable@vger.kernel.org # 5.19 Cc: Felix Fietkau <nbd@nbd.name> Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250725171213.880-5-johan@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent da71754 commit 3e13274

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/mediatek/mtk_wed.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2782,7 +2782,6 @@ void mtk_wed_add_hw(struct device_node *np, struct mtk_eth *eth,
27822782
if (!pdev)
27832783
goto err_of_node_put;
27842784

2785-
get_device(&pdev->dev);
27862785
irq = platform_get_irq(pdev, 0);
27872786
if (irq < 0)
27882787
goto err_put_device;

0 commit comments

Comments
 (0)