WSL2-Linux-Kernel/lib/mpi
Zizhuang Deng b918c668d2 lib/mpi: Add the return value check of kcalloc()
[ Upstream commit dd827abe29 ]

Add the return value check of kcalloc() to avoid potential
NULL ptr dereference.

Fixes: a8ea8bdd9d ("lib/mpi: Extend the MPI library")
Signed-off-by: Zizhuang Deng <sunsetdzz@gmail.com>
Reviewed-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:03:58 +01:00
..
Makefile
ec.c
generic_mpih-add1.c
generic_mpih-lshift.c
generic_mpih-mul1.c
generic_mpih-mul2.c
generic_mpih-mul3.c
generic_mpih-rshift.c
generic_mpih-sub1.c
longlong.h
mpi-add.c
mpi-bit.c
mpi-cmp.c
mpi-div.c
mpi-inline.h
mpi-internal.h
mpi-inv.c
mpi-mod.c
mpi-mul.c
mpi-pow.c
mpi-sub-ui.c
mpicoder.c
mpih-cmp.c
mpih-div.c
mpih-mul.c
mpiutil.c