Re: [PATCH v2 1/2] scsi: qedf: Replace kmalloc_array() with kcalloc()

From: Jiasheng Jiang
Date: Fri Feb 07 2025 - 10:48:54 EST


Hi Greg,

On Fri, Feb 7, 2025 at 10:10 AM Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> On Thu, Feb 06, 2025 at 07:19:59PM +0000, Jiasheng Jiang wrote:
> > Replace kmalloc_array() with kcalloc() to avoid old (dirty) data being
> > used/freed.
>
> "Potentially" being freed. It will not be used. And this is only for
> an error path that obviously no one has hit before.
>
> Please explain this much better.
>
> thanks,
>
> greg k-h

Thanks, I have submitted a v3 and added "potentially" in the commit message.

-Jiasheng