Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=91fa558ba28b0014205f2c1a75b1cceb4298aa04
Commit:     91fa558ba28b0014205f2c1a75b1cceb4298aa04
Parent:     52fb24cd83bdd6a1dcbd4cf4b3f5cafb741b5552
Author:     John W. Linville <[EMAIL PROTECTED]>
AuthorDate: Tue May 15 16:14:40 2007 -0400
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Tue May 29 10:34:05 2007 -0400

    [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 <[EMAIL PROTECTED]>
---
 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 dbac858..9f30ae4 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,
 {
        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. */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to