Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e0a8b13 authored by Devendra Naga's avatar Devendra Naga Committed by David S. Miller
Browse files

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 <srk@ti.com>
Cc: Cyril Chemparathy <cyril@ti.com>
Cc: Vinay Hegde <vinay.hegde@ti.com>
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d5d427cd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)