rt2x00: cancel all work on disconnect
authorPavel Roskin <proski@gnu.org>
Sun, 2 Aug 2009 18:30:15 +0000 (14:30 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:44:24 +0000 (16:44 -0400)
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c

index b717afbf3f3872cc4ffc2eedba4cdb9f8695d411..db54fcc94c8f62f0749105fdc60cabf17a7d061f 100644 (file)
@@ -892,6 +892,12 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev)
         */
        rt2x00lib_disable_radio(rt2x00dev);
 
+       /*
+        * Stop all work.
+        */
+       cancel_work_sync(&rt2x00dev->filter_work);
+       cancel_work_sync(&rt2x00dev->intf_work);
+
        /*
         * Uninitialize device.
         */