Ming Lei <tom.leiming@xxxxxxxxx> writes: >>> IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; >>> ieee80211_tx_skb(sdata, skb); >>> + kfree(buf); >> >> Better to use dev_kfree_skb() here. > > Why is dev_kfree_skb better? > It is 'buf' allocated in ieee80211_send_probe_req to be freed, not skb. Yes, I misread your patch first. Please forget that comment :) -- Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html