diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2013-04-10 11:04:00 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-12 00:07:05 +0400 |
commit | ddd4bd3e54d788d069ce022c4b93b069785e775a (patch) | |
tree | af4c3aa1f9710527428d30e435cf77fc6f89abb4 | |
parent | 9a5c59687ad8fc6a84d97fd9cb3bbf15279793ac (diff) | |
download | linux-ddd4bd3e54d788d069ce022c4b93b069785e775a.tar.xz |
staging: et131x: cancel_work when module gets unloaded
The work item has been added to the queue using INIT_WORK and scheduled
in interrupt handler. when module unloads that work item has not been
removed from the queue. remove and stop its further execution when the
module unloaded
Cc: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/et131x/et131x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index c7e9e1d6bf70..f73e58f5ef8d 100644 --- a/drivers/staging/et131x/et131x.c +++ b/drivers/staging/et131x/et131x.c @@ -3953,6 +3953,7 @@ static void et131x_pci_remove(struct pci_dev *pdev) unregister_netdev(netdev); phy_disconnect(adapter->phydev); mdiobus_unregister(adapter->mii_bus); + cancel_work_sync(&adapter->task); kfree(adapter->mii_bus->irq); mdiobus_free(adapter->mii_bus); |