diff options
author | Sathya Perla <sathyap@serverengines.com> | 2009-06-10 02:18:35 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-11 02:47:15 -0700 |
commit | b305be78a044c5f6a9d146229a280d08db0c630a (patch) | |
tree | f047ec1f8a5c9999d5870e58a6b0b2b0de2f58ad /drivers/net/benet | |
parent | c0feed87fe452c20681ae29909adaecedd1ec9f3 (diff) | |
download | linux-stable-b305be78a044c5f6a9d146229a280d08db0c630a.tar.gz linux-stable-b305be78a044c5f6a9d146229a280d08db0c630a.tar.bz2 linux-stable-b305be78a044c5f6a9d146229a280d08db0c630a.zip |
be2net: Use cancel_delayed_work_sync instead of cancel_delayed_work()
Use cancel_delayed_work_sycn instead of cancel_delayed_work() to reliably kill be_worker() as it rearms itself.
Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r-- | drivers/net/benet/be_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 347d002fa425..69046a109ac3 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c @@ -1533,7 +1533,7 @@ static int be_close(struct net_device *netdev) struct be_eq_obj *tx_eq = &adapter->tx_eq; int vec; - cancel_delayed_work(&adapter->work); + cancel_delayed_work_sync(&adapter->work); netif_stop_queue(netdev); netif_carrier_off(netdev); |