commit | 5c9fc93bc9bc417418fc1b6366833ae6a07b804d | [log] [tgz] |
---|---|---|
author | Felix Fietkau <nbd@openwrt.org> | Mon Jul 15 14:35:06 2013 +0200 |
committer | Johannes Berg <johannes.berg@intel.com> | Tue Jul 16 17:48:14 2013 +0300 |
tree | e1fb9841cd93ed7409cf2c2ccd89f416847632c6 | |
parent | 6b0f32745dcfba01d7be33acd1b40306c7a914c6 [diff] |
mac80211/minstrel: fix NULL pointer dereference issue 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>