diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-27 19:15:28 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-27 19:15:28 +0300 |
commit | ff4dd73dd2b4806419f8ff65cbce11d5019548d0 (patch) | |
tree | 9b89283d30c9398a343851bca77f4f1d34465ac3 /net | |
parent | 09e0a2fe102208cbaf39510b8b04dd524d7d2935 (diff) | |
download | linux-ff4dd73dd2b4806419f8ff65cbce11d5019548d0.tar.xz |
mac80211_hwsim: check HWSIM_ATTR_RADIO_NAME length
Unfortunately, the nla policy was defined to have HWSIM_ATTR_RADIO_NAME
as an NLA_STRING, rather than NLA_NUL_STRING, so we can't use it as a
NUL-terminated string in the kernel.
Rather than break the API, kasprintf() the string to a new buffer to
guarantee NUL termination.
Reported-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions