Search Linux Wireless

[compat-old PATCH 1/2] Fix wrong cast to ieee80211_local

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes a kernel crash that was caused by using a wrong pointer for
ieee80211_local dereference in mq compat implementation.

Signed-off-by: Jiri Benc <jbenc@xxxxxxx>

---

(The bug is described at http://wireless.kernel.org/en/users/Download/compat-wireless-old-2.6.22-bug)

 net/mac80211/mq_compat.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- cw.orig/net/mac80211/mq_compat.h
+++ cw/net/mac80211/mq_compat.h
@@ -22,7 +22,7 @@
  */
 
 #define IEEE80211_DEV_TO_LOCAL(dev) \
-	((struct ieee80211_local *)(IEEE80211_DEV_TO_SUB_IF(dev))->local)
+	((struct ieee80211_local *)(wdev_priv(dev->ieee80211_ptr)))
 
 /* This was stripped out after MQ patch for mac80211, let bring it
  * back to life */


-- 
Jiri Benc
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux