Re: [PATCH 2/7] lib/mpi: use kcalloc in mpi_resize

From: Eric Biggers
Date: Wed May 12 2021 - 16:34:34 EST


On Wed, May 12, 2021 at 10:04:09PM +0800, Hongbo Li wrote:
> From: Hongbo Li <herberthbli@xxxxxxxxxxx>
>
> We should set the additional space to 0 in mpi_resize().
> So use kcalloc() instead of kmalloc_array().
>
> Signed-off-by: Hongbo Li <herberthbli@xxxxxxxxxxx>

Is this fixing something, and if so what?

- Eric