From: Sathya Perla Date: Wed, 10 Jun 2009 02:18:35 +0000 (+0000) Subject: be2net: Use cancel_delayed_work_sync instead of cancel_delayed_work() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b305be78a044c5f6a9d146229a280d08db0c630a;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- 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);