Search Linux Wireless

Re: [PATCH 1/2] mac80211: validate skb->dev in the tx status path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2012-09-07 5:11 PM, Johannes Berg wrote:
> On Fri, 2012-09-07 at 16:54 +0200, Felix Fietkau wrote:
> 
>> +		if (!skb->dev) {
>>  			p2p_sdata = rcu_dereference(local->p2p_sdata);
>>  			if (p2p_sdata) {
>> -				cfg80211_mgmt_tx_status(
>> -					&p2p_sdata->wdev, cookie, skb->data,
>> -					skb->len, acked, GFP_ATOMIC);
>> +				skb->dev = p2p_sdata->dev;
>> +				found = true;
> 
> What's the point of this? p2p_sdata->dev will be NULL, just like
> skb->dev already is?
Oh, missed that. I'll send a v2.

- Felix
--
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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux