]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: fix a possible memory leak in hwsim_new_radio_nl()
authorYueHaibing <yuehaibing@huawei.com>
Tue, 24 Apr 2018 03:08:35 +0000 (11:08 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 7 May 2018 13:01:29 +0000 (15:01 +0200)
commit61179c71d3b019db310194987c73773bc6d2bd9e
treefebf9b5c7bc46a69f334b49de82c55e78e8b744e
parent1ed688efa388ae70b359435d6301c9bf4dc7994b
mac80211_hwsim: fix a possible memory leak in hwsim_new_radio_nl()

'hwname' should be freed before leaving from the error handling cases,
otherwise it will cause mem leak

Fixes: 8a8253e0cfdc ("mac80211_hwsim: add permanent mac address option for new radios")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c