Search Linux Wireless

Re: [PATCH] mac80211: fix a memory leak on sta rate selection table

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

 



On Fri, 2014-05-23 at 19:29 +0200, Felix Fietkau wrote:
> Cc: stable@xxxxxxxxxxxxxxx
> Reported-by: Christophe Prévotaux <cprevotaux@xxxxxxxxxx>
> Signed-off-by: Felix Fietkau <nbd@xxxxxxxxxxx>

As Ben said, a Fixes: line would be good - probably also needs Cc
stable.


> +	rates = rcu_dereference_protected(sta->sta.rates, true);
> +	if (rates)
> +		kfree(rates);

That seems like it should just be rcu_dereference_raw()? That's really
the same (it's a macro), but less verbose.

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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux