On 2023/5/15 19:01, Kalle Valo wrote:
Zhengchao Shao <shaozhengchao@xxxxxxxxxx> writes:
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: 92d13386ec55 ("mac80211_hwsim: add PMSR capability support")
Reported-by: syzbot+904ce6fbb38532d9795c@xxxxxxxxxxxxxxxxxxxxxxxxx
Signed-off-by: Zhengchao Shao <shaozhengchao@xxxxxxxxxx>
---
v2: move the value assigned to pmsr_capa before parse_pmsr_capa
---
drivers/net/wireless/virtual/mac80211_hwsim.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless changes go to wireless-next, not net-next. But no
need to resend because of this.
Thank you for the reminder. I will pay attention next time.
Zhengchao Shao