diff options
author | John W. Linville <linville@tuxdriver.com> | 2007-05-15 16:14:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-05-29 10:34:05 -0400 |
commit | 91fa558ba28b0014205f2c1a75b1cceb4298aa04 (patch) | |
tree | b10a12a30eaaf72ecc1ff3d8de95be5eacd4e1d4 | |
parent | 52fb24cd83bdd6a1dcbd4cf4b3f5cafb741b5552 (diff) |
[PATCH] mac80211: avoid null ptr deref in ieee80211_ibss_add_sta
avoid sdata null pointer dereference in ieee80211_ibss_add_sta.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index dbac8583f394..9f30ae4c2ab3 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c | |||
@@ -2997,7 +2997,7 @@ struct sta_info * ieee80211_ibss_add_sta(struct net_device *dev, | |||
2997 | { | 2997 | { |
2998 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | 2998 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); |
2999 | struct sta_info *sta; | 2999 | struct sta_info *sta; |
3000 | struct ieee80211_sub_if_data *sdata = NULL; | 3000 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
3001 | 3001 | ||
3002 | /* TODO: Could consider removing the least recently used entry and | 3002 | /* TODO: Could consider removing the least recently used entry and |
3003 | * allow new one to be added. */ | 3003 | * allow new one to be added. */ |