summaryrefslogtreecommitdiffstats
path: root/arch/tile/kernel
diff options
context:
space:
mode:
authorBen Hutchings2017-11-10 19:48:50 +0100
committerJohannes Berg2017-11-20 16:57:15 +0100
commit67bd52386125ce1159c0581cbcd2740addf33cd4 (patch)
tree5be55da42a111f6546deb88f82030a8afdf3fbaa /arch/tile/kernel
parentcfg80211: initialize regulatory keys/database later (diff)
downloadkernel-qcow2-linux-67bd52386125ce1159c0581cbcd2740addf33cd4.tar.gz
kernel-qcow2-linux-67bd52386125ce1159c0581cbcd2740addf33cd4.tar.xz
kernel-qcow2-linux-67bd52386125ce1159c0581cbcd2740addf33cd4.zip
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 'arch/tile/kernel')
0 files changed, 0 insertions, 0 deletions