All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2] net: macb: add missed tasklet_kill
@ 2019-11-16 14:23 Chuhong Yuan
  2019-11-16 20:17 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Chuhong Yuan @ 2019-11-16 14:23 UTC (permalink / raw)
  Cc: Nicolas Ferre, David S . Miller, netdev, linux-kernel, Chuhong Yuan

This driver forgets to kill tasklet in remove.
Add the call to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
---
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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next v2] net: macb: add missed tasklet_kill
  2019-11-16 14:23 [PATCH net-next v2] net: macb: add missed tasklet_kill Chuhong Yuan
@ 2019-11-16 20:17 ` David Miller
  2019-11-17  3:40   ` Chuhong Yuan
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2019-11-16 20:17 UTC (permalink / raw)
  To: hslester96; +Cc: nicolas.ferre, netdev, linux-kernel

From: Chuhong Yuan <hslester96@gmail.com>
Date: Sat, 16 Nov 2019 22:23:10 +0800

> This driver forgets to kill tasklet in remove.
> Add the call to fix it.
> 
> Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
> ---
> Changes in v2:
>   - Rebase on net-next.

Does this bug exist in mainline?  Then this bug fix should target 'net'.

You must also provide an appropriate Fixes: tag which indicates the commit
which introduced this bug.

Thank you.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next v2] net: macb: add missed tasklet_kill
  2019-11-16 20:17 ` David Miller
@ 2019-11-17  3:40   ` Chuhong Yuan
  0 siblings, 0 replies; 3+ messages in thread
From: Chuhong Yuan @ 2019-11-17  3:40 UTC (permalink / raw)
  To: David Miller; +Cc: Nicolas Ferre, Netdev, LKML

On Sun, Nov 17, 2019 at 4:17 AM David Miller <davem@davemloft.net> wrote:
>
> From: Chuhong Yuan <hslester96@gmail.com>
> Date: Sat, 16 Nov 2019 22:23:10 +0800
>
> > This driver forgets to kill tasklet in remove.
> > Add the call to fix it.
> >
> > Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
> > ---
> > Changes in v2:
> >   - Rebase on net-next.
>
> Does this bug exist in mainline?  Then this bug fix should target 'net'.
>

This bug exists in mainline but this file has been modified in net-next, so
the line number is a little different.

> You must also provide an appropriate Fixes: tag which indicates the commit
> which introduced this bug.
>
> Thank you.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-17  3:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-16 14:23 [PATCH net-next v2] net: macb: add missed tasklet_kill Chuhong Yuan
2019-11-16 20:17 ` David Miller
2019-11-17  3:40   ` Chuhong Yuan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.