Search Linux Wireless

Re: [PATCH 04/10] nl80211: disallow user requests prior to regulatory_init()

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

 



On Mon, 2009-02-16 at 00:13 -0800, Luis R. Rodriguez wrote:

> >> +     if (!cfg80211_regdomain)
> >> +             return -EINPROGRESS;
> >> +
> >
> > But that variable access here is racy too.
> 
> Right.
> 
> > It might be ok anyway because
> > the variable can never be NULL again after the first assignment
> 
> That's what I was going for.
> 
> >  but in
> > that case the assignment needs to take care to assign something fully
> > created ...
> 
> Can you elaborate on what you mean?

It'd have to be done in a RCU-like fashion, unless we only ever use it
as a bool here?

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[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