mac80211/minstrel: fix NULL pointer dereference issue
authorFelix Fietkau <nbd@openwrt.org>
Mon, 15 Jul 2013 12:35:06 +0000 (14:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Jul 2013 14:48:14 +0000 (17:48 +0300)
When priv_sta == NULL, mi->prev_sample is dereferenced too early. Move
the assignment further down, after the rate_control_send_low call.

Reported-by: Krzysztof Mazur <krzysiek@podlesie.net>
Cc: stable@vger.kernel.org # 3.10
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

No differences found