1 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c
2 +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
3 @@ -1224,7 +1224,8 @@ void rt2x00lib_remove_dev(struct rt2x00_
4 cancel_work_sync(&rt2x00dev->rxdone_work);
5 cancel_work_sync(&rt2x00dev->txdone_work);
7 - destroy_workqueue(rt2x00dev->workqueue);
8 + if (rt2x00dev->workqueue)
9 + destroy_workqueue(rt2x00dev->workqueue);
12 * Free the tx status fifo.