|
@@ -1220,7 +1220,8 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev)
|
|
cancel_work_sync(&rt2x00dev->rxdone_work);
|
|
cancel_work_sync(&rt2x00dev->rxdone_work);
|
|
cancel_work_sync(&rt2x00dev->txdone_work);
|
|
cancel_work_sync(&rt2x00dev->txdone_work);
|
|
}
|
|
}
|
|
- destroy_workqueue(rt2x00dev->workqueue);
|
|
|
|
|
|
+ if (rt2x00dev->workqueue)
|
|
|
|
+ destroy_workqueue(rt2x00dev->workqueue);
|
|
|
|
|
|
/*
|
|
/*
|
|
* Free the tx status fifo.
|
|
* Free the tx status fifo.
|