Skip to content

Commit 1e0a8b1

Browse files
Devendra Nagadavem330
authored andcommitted
tlan: cancel work at remove path
the work has been scheduled from interrupt, and not been cancelled when the driver is unloaded, which doesn't remove the work item from the global workqueue. call the cancel_work_sync when the driver is removed (rmmod'ed). Cc: Sriram <[email protected]> Cc: Cyril Chemparathy <[email protected]> Cc: Vinay Hegde <[email protected]> Signed-off-by: Devendra Naga <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d5d427c commit 1e0a8b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/ti/tlan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ static void tlan_remove_one(struct pci_dev *pdev)
320320
free_netdev(dev);
321321

322322
pci_set_drvdata(pdev, NULL);
323+
cancel_work_sync(&priv->tlan_tqueue);
323324
}
324325

325326
static void tlan_start(struct net_device *dev)

0 commit comments

Comments
 (0)