Re: [PATCH] net: macb: add missed tasklet_kill

From: Claudiu.Beznea
Date: Fri Nov 15 2019 - 03:31:33 EST




On 15.11.2019 04:32, Chuhong Yuan wrote:
> This driver forgets to kill tasklet in remove.
> Add the call to fix it.
>
> Signed-off-by: Chuhong Yuan <hslester96@xxxxxxxxx>

I think that you need to rebase it on latest net-next. Other than this:

Reviewed-by: Claudiu Beznea <claudiu.beznea@xxxxxxxxxxxxx>

> ---
> 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 1e1b774e1953..2ec416098fa3 100644
> --- a/drivers/net/ethernet/cadence/macb_main.c
> +++ b/drivers/net/ethernet/cadence/macb_main.c
> @@ -4383,6 +4383,7 @@ static int macb_remove(struct platform_device *pdev)
>
> if (dev) {
> bp = netdev_priv(dev);
> + tasklet_kill(&bp->hresp_err_tasklet);
> if (dev->phydev)
> phy_disconnect(dev->phydev);
> mdiobus_unregister(bp->mii_bus);
> --
> 2.24.0
>
>