[PATCH net-next v2] net: macb: add missed tasklet_kill
From: Chuhong Yuan
Date: Sat Nov 16 2019 - 09:23:38 EST
This driver forgets to kill tasklet in remove.
Add the call to fix it.
Signed-off-by: Chuhong Yuan <hslester96@xxxxxxxxx>
---
Changes in v2:
- Rebase on net-next.
drivers/net/ethernet/cadence/macb_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 8fc2e21f0bb1..7bf86b84b143 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -4418,6 +4418,7 @@ static int macb_remove(struct platform_device *pdev)
if (dev) {
bp = netdev_priv(dev);
+ tasklet_kill(&bp->hresp_err_tasklet);
mdiobus_unregister(bp->mii_bus);
mdiobus_free(bp->mii_bus);
--
2.24.0