Search Linux Wireless

Re: [PATCH] ath6kl: implement testmode rx command

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

 



Dan Carpenter <error27@xxxxxxxxx> writes:

> On Mon, Jun 27, 2011 at 06:36:10PM +0300, Kalle Valo wrote:
>
>> +void ar6000_testmode_rx_report_event(struct ar6_softc *ar, void *buf,
>> +				     int buf_len)
>> +{
>> +	kfree(ar->tcmd_rx_report);
>> +
>> +	ar->tcmd_rx_report = kmemdup(buf, buf_len, GFP_KERNEL);
>> +	ar->tcmd_rx_report_len = buf_len;
>> +
>
> Can this race?  When we use tcmd_rx_report_len we are under lock,
> but it seems like when we set it here, we're not under lock.

Yes, it can. I'll fix it in v2.

Thanks again for good comments.

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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux