Re: [PATCH] scsi: cxlflash: change kzalloc to kcalloc

2025-01-20 Thread Johannes Thumshirn
On 20.01.25 17:55, Ethan Carter Edwards wrote: > We are replacing any instances of kzalloc(size * count, ...) with > kcalloc(count, size, ...) due to risk of overflow [1]. > > [1] > https://www.kernel.org/doc/html/next/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments > > Link

[PATCH] scsi: cxlflash: change kzalloc to kcalloc

2025-01-20 Thread Ethan Carter Edwards
We are replacing any instances of kzalloc(size * count, ...) with kcalloc(count, size, ...) due to risk of overflow [1]. [1] https://www.kernel.org/doc/html/next/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments Link: https://github.com/KSPP/linux/issues/162 Signed-off-by: Eth