aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-16 17:14:34 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-16 17:14:34 +0000
commitfa227cef4db71162cf608e6f725ab87e11b9fc9c (patch)
tree3837c00a4d7ae165967375a38f3ab5b9c96565f5 /package/mac80211/patches
parent3004f30f01df07fb0595ae3d5c787e35c944e641 (diff)
downloadupstream-fa227cef4db71162cf608e6f725ab87e11b9fc9c.tar.gz
upstream-fa227cef4db71162cf608e6f725ab87e11b9fc9c.tar.bz2
upstream-fa227cef4db71162cf608e6f725ab87e11b9fc9c.zip
package/mac80211: fix a possible NULL pointer dereference in rt2x00
SVN-Revision: 30586
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r--package/mac80211/patches/607-rt2x00-dont-try-to-destroy-unallocated-workqueue.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/mac80211/patches/607-rt2x00-dont-try-to-destroy-unallocated-workqueue.patch b/package/mac80211/patches/607-rt2x00-dont-try-to-destroy-unallocated-workqueue.patch
new file mode 100644
index 0000000000..f9d3ca1ad1
--- /dev/null
+++ b/package/mac80211/patches/607-rt2x00-dont-try-to-destroy-unallocated-workqueue.patch
@@ -0,0 +1,12 @@
+--- 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.