[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250508173647.GN3339421@horms.kernel.org>
Date: Thu, 8 May 2025 18:36:47 +0100
From: Simon Horman <horms@...nel.org>
To: Abdun Nihaal <abdun.nihaal@...il.com>
Cc: shshaikh@...vell.com, manishc@...vell.com, GR-Linux-NIC-Dev@...vell.com,
andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, rajesh.borundia@...gic.com,
sucheta.chakraborty@...gic.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] qlcnic: fix memory leak in
qlcnic_sriov_channel_cfg_cmd()
On Wed, May 07, 2025 at 08:51:00PM +0530, Abdun Nihaal wrote:
> In one of the error paths in qlcnic_sriov_channel_cfg_cmd(), the memory
> allocated in qlcnic_sriov_alloc_bc_mbx_args() for mailbox arguments is
> not freed. Fix that by jumping to the error path that frees them, by
> calling qlcnic_free_mbx_args().
Thanks, I agree with your analysis.
But I think it would be nice to include some text regarding
how you found the bug, e.g. by inspection, using static analysis,
via a crash.
And if you have been able to test the patch on hardware,
or if, rather, it is compile tested only.
>
> Fixes: f197a7aa6288 ("qlcnic: VF-PF communication channel implementation")
> Signed-off-by: Abdun Nihaal <abdun.nihaal@...il.com>
...
Powered by blists - more mailing lists