This repository was archived by the owner on Dec 20, 2023. It is now read-only.
Commit 252e07c
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 <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent bc37b16 commit 252e07c
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5927 | 5927 | | |
5928 | 5928 | | |
5929 | 5929 | | |
| 5930 | + | |
5930 | 5931 | | |
5931 | 5932 | | |
5932 | 5933 | | |
| |||
5963 | 5964 | | |
5964 | 5965 | | |
5965 | 5966 | | |
5966 | | - | |
| 5967 | + | |
| 5968 | + | |
| 5969 | + | |
| 5970 | + | |
| 5971 | + | |
| 5972 | + | |
| 5973 | + | |
| 5974 | + | |
5967 | 5975 | | |
5968 | 5976 | | |
5969 | 5977 | | |
| |||
0 commit comments