diff options
author | Jiri Benc <jbenc@suse.cz> | 2008-09-26 16:19:23 +0200 |
---|---|---|
committer | Luis R. Rodriguez <lrodriguez@atheros.com> | 2008-09-26 15:58:45 -0700 |
commit | 110052de6cea4ce1a0d7987ba9ec6631a153d077 (patch) | |
tree | dd8a97e555a8646d79dc9fcd48e7337ecca22fcf | |
parent | 4d6306a48cd8b998754e9822184527bd22fbafc9 (diff) | |
download | compat-wireless-2.6-old-110052de6cea4ce1a0d7987ba9ec6631a153d077.tar.gz |
Fix wrong cast to ieee80211_local
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>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
-rw-r--r-- | net/mac80211/mq_compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mq_compat.h b/net/mac80211/mq_compat.h index e0bb162..f8a99e3 100644 --- a/net/mac80211/mq_compat.h +++ b/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 */ |