Thanks Pavel, > > while (!skb_queue_empty(&local->pending[i])) { > > struct sk_buff *skb = __skb_dequeue(&local->pending[i]); > > + struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); > > + struct ieee80211_sub_if_data *sdata; > > + > > + sdata = vif_to_sdata(info->control.vif); > > + dev_hold(sdata->dev); > > I'm getting a panic at this point if I run hostapd on ath9k and a > Windows client tries to authenticate with a wrong WPA key. > > Debugging shows that sdata->dev is NULL. I suspect 'sdata' is already pointing to something bogus, since it's the result of a container_of(). Can you try with the sanity checking patch I'm about to send? johannes
Attachment:
signature.asc
Description: This is a digitally signed message part