From: Pavel Roskin Date: Sun, 2 Aug 2009 18:30:15 +0000 (-0400) Subject: rt2x00: cancel all work on disconnect X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8cc8926e9b4dc2ce513ee3325bf16b4ea6d94e8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git rt2x00: cancel all work on disconnect Signed-off-by: Pavel Roskin Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index b717afbf3f38..db54fcc94c8f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c @@ -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. */