diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2011-08-11 11:46:22 +0300 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2012-01-24 15:33:15 -0800 |
commit | 87159de9c30dab02b84cbaffa7498140d4ebc1a1 (patch) | |
tree | 0239ff8486bf98b9a19c8199dd2b09e5cff73c29 /include/net | |
parent | d692df224b8605095cb7f770c1c99d3150834daf (diff) | |
download | kernel_samsung_aries-87159de9c30dab02b84cbaffa7498140d4ebc1a1.zip kernel_samsung_aries-87159de9c30dab02b84cbaffa7498140d4ebc1a1.tar.gz kernel_samsung_aries-87159de9c30dab02b84cbaffa7498140d4ebc1a1.tar.bz2 |
nl80211/cfg80211: Make addition of new sinfo fields safer
Add a comment pointing out the use of enum station_info_flags for
all new struct station_info fields. In addition, memset the sinfo
buffer to zero before use on all paths in the current tree to avoid
leaving uninitialized pointers in the data.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/cfg80211.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 6944829..e95d3ac 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -566,6 +566,11 @@ struct station_info { const u8 *assoc_req_ies; size_t assoc_req_ies_len; + + /* + * Note: Add a new enum station_info_flags value for each new field and + * use it to check which fields are initialized. + */ }; /** |