forked from Minki/linux
rt2x00: cancel all work on disconnect
Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
117839bd12
commit
d8cc8926e9
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user