Search Linux Wireless

Re: [RFT] mac80211: allow mode changes while interface is up

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

 



On Sat, 2009-03-21 at 17:56 +0100, Johannes Berg wrote:

> > What about memory allocation failures?
> > I think we should check for an error and if one occurs take the interface
> > completely down and return the error to userspace.
> 
> Makes sense, need to audit the code though to verify that
> ieee80211_stop() doesn't puke if you call it twice in a row (since
> dev_close() will call it again)

In fact, it is _not_ safe to do that, the iff_allmultis/promiscs
counters for example will be wrong. Easily worked around though --
shortcut the function if you realise it was already called.

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