From: Devendra Naga Date: Tue, 16 Apr 2013 01:30:38 +0000 (+0000) Subject: tlan: cancel work at remove path X-Git-Tag: v3.10-rc1~66^2~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e0a8b13d35510e711fdf72e9a3e30bcb2bd49fa;p=platform%2Fkernel%2Flinux-stable.git 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 Cc: Cyril Chemparathy Cc: Vinay Hegde Signed-off-by: Devendra Naga Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c index bdda36f..60c400f 100644 --- a/drivers/net/ethernet/ti/tlan.c +++ b/drivers/net/ethernet/ti/tlan.c @@ -320,6 +320,7 @@ static void tlan_remove_one(struct pci_dev *pdev) free_netdev(dev); pci_set_drvdata(pdev, NULL); + cancel_work_sync(&priv->tlan_tqueue); } static void tlan_start(struct net_device *dev)