summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-11-28 03:00:21 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-29 08:05:28 +0100
commit61183b056b49e2937ff92a1424291ba36a6f6d05 (patch)
treed29934396f7e1e41fc4ae024b9c814f5316ffeaf /drivers/net/ethernet
parentMerge branch 'net-tls-fix-scatter-gather-list-issues' (diff)
downloadlinux-61183b056b49e2937ff92a1424291ba36a6f6d05.tar.xz
linux-61183b056b49e2937ff92a1424291ba36a6f6d05.zip
net: macb: add missed tasklet_kill
This driver forgets to kill tasklet in remove. Add the call to fix it. Fixes: 032dc41ba6e2 ("net: macb: Handle HRESP error") Signed-off-by: Chuhong Yuan <hslester96@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/cadence/macb_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index d5ae2e1e0b0e..9c767ee252ac 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -4422,6 +4422,7 @@ static int macb_remove(struct platform_device *pdev)
mdiobus_free(bp->mii_bus);
unregister_netdev(dev);
+ tasklet_kill(&bp->hresp_err_tasklet);
pm_runtime_disable(&pdev->dev);
pm_runtime_dont_use_autosuspend(&pdev->dev);
if (!pm_runtime_suspended(&pdev->dev)) {