Search Linux Wireless

Re: cfg80211 wext compat w/o wext code changes, rtnl locking

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

 



On Fri, 2007-03-30 at 12:11 +0200, Michael Buesch wrote:
> On Thursday 29 March 2007 01:00, Johannes Berg wrote:
> > -			if(handler != NULL) {
> > +			if (handler) {
> > +				if (!dev->wireless_handlers->no_locking)
> > +					rtnl_lock();
> 
> Is sparse OK with this conditional locking?

I also thought it wasn't but it didn't complain. The only reason why I
didn't just duplicate the code was the deep indentation 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