From: Luciano Coelho Date: Wed, 8 Oct 2014 06:48:34 +0000 (+0300) Subject: nl80211: sanity check the channel switch counter value X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~30^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=252e07ca5f64dd31fdfca8027287e7d75fefdab1;p=pandora-kernel.git nl80211: sanity check the channel switch counter value The nl80211 channel switch count attribute (NL80211_ATTR_CH_SWITCH_COUNT) is specified as u32, but the specification uses u8 for the counter. To make sure strange things don't happen without informing the user, sanity check the value and return -EINVAL if it doesn't fit in u8. Signed-off-by: Luciano Coelho Signed-off-by: Johannes Berg --- Reading git-diff-tree failed