dect
/
linux-2.6
Archived
13
0
Fork 0

[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>
This commit is contained in:
John W. Linville 2007-05-15 16:14:40 -04:00
parent 52fb24cd83
commit 91fa558ba2
1 changed files with 1 additions and 1 deletions

View File

@ -2997,7 +2997,7 @@ struct sta_info * ieee80211_ibss_add_sta(struct net_device *dev,
{
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
struct sta_info *sta;
struct ieee80211_sub_if_data *sdata = NULL;
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
/* TODO: Could consider removing the least recently used entry and
* allow new one to be added. */