diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2017-11-10 18:48:50 +0000 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-11-20 16:57:15 +0100 |
commit | 67bd52386125ce1159c0581cbcd2740addf33cd4 (patch) | |
tree | 5be55da42a111f6546deb88f82030a8afdf3fbaa /net/mac80211/agg-tx.c | |
parent | d7be102f2945a626f55e0501e52bb31ba3e77b81 (diff) |
mac80211_hwsim: Fix memory leak in hwsim_new_radio_nl()
hwsim_new_radio_nl() now copies the name attribute in order to add a
null-terminator. mac80211_hwsim_new_radio() (indirectly) copies it
again into the net_device structure, so the first copy is not used or
freed later. Free the first copy before returning.
Fixes: ff4dd73dd2b4 ("mac80211_hwsim: check HWSIM_ATTR_RADIO_NAME length")
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/agg-tx.c')
0 files changed, 0 insertions, 0 deletions