Search Linux Wireless

Re: [PATCH 02/10] rt2800: identify station based on status WCID

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

 



On 2017-02-14 13:46, Stanislaw Gruszka wrote:
> Add station field to skb_frame_desc and assign it according to status
> WCID. This field will be used in the future.
> 
> Signed-off-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>
I see some potential for race conditions in this approach. You store the
sta pointer in struct skb_frame_desc, but I don't see anything that
guarantees that the sta will be around for as long as the tx frame is held.
I think a better approach would be to not store the sta pointer in
skb_frame_desc at all.
Instead, add a driver callback to look up the sta by wcid, and use rcu
properly there. Make sure you only hold the sta pointer obtained from
that call within a RCU read locked section.

- Felix



[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