Search Linux Wireless

Re: [PATCH v3 4/5] mac80211_hwsim: add permanent mac address option for new radios

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

 



On Mon, 2018-01-15 at 15:48 +0100, Benjamin Beichler wrote:

> > > +		if (get_hwsim_data_ref_from_addr(
> > > +				nla_data(info->attrs[HWSIM_ATTR_PERM_ADDR]))) {
> > > +			pr_debug("mac80211_hwsim: perm MAC already in use\n");
> > > +			return -EINVAL;
> > > +		}
> > 
> > This is racy afaict - remove it and return a clash later when you fail
> > to insert the new radio.
> 
> Ehm yes, actually exactly this test is already in the rhashtable patch.
> But maybe I should also change there the error print to a NL_ERR_MSG() ?

Oh, really? I just sent that out, but whatever, we have enough time to
fix it :-)

And yes, using netlink extended ack messages here as well would be
good.

johannes



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux