1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-15 17:26:46 +03:00
openwrt-xburst/package/mac80211/patches/607-rt2x00-dont-try-to-destroy-unallocated-workqueue.patch
juhosg 0853b66205 package/mac80211: fix a possible NULL pointer dereference in rt2x00
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30586 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-16 17:14:34 +00:00

13 lines
403 B
Diff

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