diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-27 17:15:28 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-27 17:15:28 +0100 |
commit | ff4dd73dd2b4806419f8ff65cbce11d5019548d0 (patch) | |
tree | 9b89283d30c9398a343851bca77f4f1d34465ac3 /drivers/power/supply/ab8500_charger.c | |
parent | mac80211: fix typo in debug print (diff) | |
download | linux-ff4dd73dd2b4806419f8ff65cbce11d5019548d0.tar.xz linux-ff4dd73dd2b4806419f8ff65cbce11d5019548d0.zip |
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 'drivers/power/supply/ab8500_charger.c')
0 files changed, 0 insertions, 0 deletions