Commit 098abbd
mac80211_hwsim: fix memory leak in hwsim_new_radio_nl
When parse_pmsr_capa failed in hwsim_new_radio_nl, the memory resources
applied for by pmsr_capa are not released. Add release processing to the
incorrect path.
Fixes: 92d1338 ("mac80211_hwsim: add PMSR capability support")
Reported-by: syzbot+904ce6fbb38532d9795c@syzkaller.appspotmail.com
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230515092227.2691437-1-shaozhengchao@huawei.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent a8938bc commit 098abbd
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5964 | 5964 | | |
5965 | 5965 | | |
5966 | 5966 | | |
| 5967 | + | |
| 5968 | + | |
5967 | 5969 | | |
5968 | 5970 | | |
5969 | 5971 | | |
5970 | | - | |
5971 | 5972 | | |
5972 | 5973 | | |
5973 | 5974 | | |
| |||
0 commit comments