Changeset 24312


Ignore:
Timestamp:
2010-12-07T19:22:43+01:00 (7 years ago)
Author:
nbd
Message:

ath9k: fix a null pointer deref issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/320-pending_work.patch

    r24235 r24312  
    21382138  
    21392139        /* add interfaces */ 
     2140--- a/drivers/net/wireless/ath/ath9k/xmit.c 
     2141+++ b/drivers/net/wireless/ath/ath9k/xmit.c 
     2142@@ -1745,7 +1745,10 @@ int ath_tx_start(struct ieee80211_hw *hw 
     2143        int frmlen = skb->len + FCS_LEN; 
     2144        int q; 
     2145  
     2146-       txctl->an = (struct ath_node *)sta->drv_priv; 
     2147+       /* NOTE:  sta can be NULL according to net/mac80211.h */ 
     2148+       if (sta) 
     2149+               txctl->an = (struct ath_node *)sta->drv_priv; 
     2150+ 
     2151        if (info->control.hw_key) 
     2152                frmlen += info->control.hw_key->icv_len; 
     2153  
Note: See TracChangeset for help on using the changeset viewer.