Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5674a6d2 authored by YueHaibing's avatar YueHaibing Committed by Treehugger Robot
Browse files

BACKPORT: 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

Bug: 254441685
Fixes: cb1a5bae ("mac80211_hwsim: add permanent mac address option for new radios")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
(cherry picked from commit e8f90c74)
[Lee: Resolved simple conflict]
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ia902a1b2e0adc73c7103e36ca8e3cd19e2bb768d
parent 410d26ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment