Re: [PATCH] mac80211_hwsim: fix a possible memory leak in hwsim_new_radio_nl()

2018-04-27 Thread YueHaibing
cc Ben Hutchings On 2018/4/24 11:08, YueHaibing wrote: > 'hwname' should be freed before leaving from the error handling cases, > otherwise it will cause mem leak > > Fixes: cb1a5bae5684 ("mac80211_hwsim: add permanent mac address option for > new radios") >

[PATCH] mac80211_hwsim: fix a possible memory leak in hwsim_new_radio_nl()

2018-04-23 Thread YueHaibing
'hwname' should be freed before leaving from the error handling cases, otherwise it will cause mem leak Fixes: cb1a5bae5684 ("mac80211_hwsim: add permanent mac address option for new radios") Signed-off-by: YueHaibing --- drivers/net/wireless/mac80211_hwsim.c | 1 + 1