[lkml]   [2018]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] net: wireless: ath: ath9k: Fix a possible data race in ath_chanctx_set_next
Kalle Valo <> writes:

> Jia-Ju Bai <> writes:
>> The write operation to "sc->next_chan" is protected by
>> the lock on line 1287, but the read operation to
>> this data on line 1262 is not protected by the lock.
>> Thus, there may exist a data race for "sc->next_chan".
>> To fix this data race, the read operation to "sc->next_chan"
>> should be also protected by the lock.
>> Signed-off-by: Jia-Ju Bai <>
> I need this reviewed by someone else before I'm willing to take it.

Only possible issue I can see is that it puts a call to
getrawmonotonic() under the spinlock. Not sure if that has any bad


 \ /
  Last update: 2018-05-08 17:09    [W:0.075 / U:20.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site