[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZGIuImVBq+CTMs9r@corigine.com>
Date: Mon, 15 May 2023 15:05:38 +0200
From: Simon Horman <simon.horman@...igine.com>
To: Zhengchao Shao <shaozhengchao@...wei.com>
Cc: linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
johannes@...solutions.net, kvalo@...nel.org, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
jaewan@...gle.com, steen.hegelund@...rochip.com,
weiyongjun1@...wei.com, yuehaibing@...wei.com,
syzbot+904ce6fbb38532d9795c@...kaller.appspotmail.com
Subject: Re: [PATCH net-next,v2] mac80211_hwsim: fix memory leak in
hwsim_new_radio_nl
On Mon, May 15, 2023 at 05:22:27PM +0800, Zhengchao Shao wrote:
> 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@...kaller.appspotmail.com
> Signed-off-by: Zhengchao Shao <shaozhengchao@...wei.com>
> ---
> v2: move the value assigned to pmsr_capa before parse_pmsr_capa
Reviewed-by: Simon Horman <simon.horman@...igine.com>
Powered by blists - more mailing lists