linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [compat-old PATCH 1/2] Fix wrong cast to ieee80211_local
@ 2008-09-26 14:19 Jiri Benc
  2008-09-26 14:20 ` [compat-old PATCH 2/2] Allow compilation on 2.6.22 Jiri Benc
  0 siblings, 1 reply; 3+ messages in thread
From: Jiri Benc @ 2008-09-26 14:19 UTC (permalink / raw)
  To: linux-wireless; +Cc: Luis R. Rodriguez

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@suse.cz>

---

(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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-26 23:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-26 14:19 [compat-old PATCH 1/2] Fix wrong cast to ieee80211_local Jiri Benc
2008-09-26 14:20 ` [compat-old PATCH 2/2] Allow compilation on 2.6.22 Jiri Benc
2008-09-26 23:19   ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).