nl80211: validate number of probe response CSA counters
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Sep 2016 13:53:55 +0000 (15:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Sep 2016 08:18:38 +0000 (10:18 +0200)
commitf1b01a340b2b4bc18e90fe5e5a3e99d7d3cffe32
treee9afdb6fca5e03534df2f27a9b8cea7b733055a5
parenta68022d9b59c2fc1ebe3c4133f0e2f32b4cde065
nl80211: validate number of probe response CSA counters

commit ad5987b47e96a0fb6d13fea250e936aed000093c upstream.

Due to an apparent copy/paste bug, the number of counters for the
beacon configuration were checked twice, instead of checking the
number of probe response counters. Fix this to check the number of
probe response counters before parsing those.

Fixes: 9a774c78e211 ("cfg80211: Support multiple CSA counters")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c