aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorBen Hutchings <[email protected]>2017-11-10 18:48:50 +0000
committerJohannes Berg <[email protected]>2017-11-20 15:57:15 +0000
commit67bd52386125ce1159c0581cbcd2740addf33cd4 (patch)
tree5be55da42a111f6546deb88f82030a8afdf3fbaa /net/ipv4/tcp_output.c
parentcfg80211: initialize regulatory keys/database later (diff)
downloadkernel-67bd52386125ce1159c0581cbcd2740addf33cd4.tar.gz
kernel-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 <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions