Search Linux Wireless

Re: [PATCH 2/3] mac80211: create a STA entry for a WDS interface after receiving a beacon

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

 



On Tue, 2011-05-31 at 21:16 +0200, Felix Fietkau wrote:

> +	rcu_read_lock();
> +
> +	sta = sta_info_get(sdata, sdata->u.wds.remote_addr);
> +
> +	if (!sta) {
> +		rcu_read_unlock();
> +		sta = sta_info_alloc(sdata, sdata->u.wds.remote_addr,
> +				     GFP_KERNEL);
> +		if (!sta)
> +			return;
> +
> +		new = true;
> +	}

...

> +	rcu_read_unlock();

definitely doesn't look right.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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