Skip to content

Commit 61183b0

Browse files
WillLesterdavem330
authored andcommitted
net: macb: add missed tasklet_kill
This driver forgets to kill tasklet in remove. Add the call to fix it. Fixes: 032dc41 ("net: macb: Handle HRESP error") Signed-off-by: Chuhong Yuan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2eaa857 commit 61183b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4422,6 +4422,7 @@ static int macb_remove(struct platform_device *pdev)
44224422
mdiobus_free(bp->mii_bus);
44234423

44244424
unregister_netdev(dev);
4425+
tasklet_kill(&bp->hresp_err_tasklet);
44254426
pm_runtime_disable(&pdev->dev);
44264427
pm_runtime_dont_use_autosuspend(&pdev->dev);
44274428
if (!pm_runtime_suspended(&pdev->dev)) {

0 commit comments

Comments
 (0)