Re: [PATCH v2] scsi: qedf: Use kcalloc() and add check for bdt_info

From: Markus Elfring
Date: Sun Feb 02 2025 - 10:23:19 EST


> Replace kmalloc_array() with kcalloc() to avoid old (dirty) data being
> used/freed.
> Moreover, add a check for "bdt_info". Otherwise, if one of the allocations


Please provide desired changes as separate update steps.

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.13#n81

Regards,
Markus