Zizhuang Deng b918c668d2 lib/mpi: Add the return value check of kcalloc()
[ Upstream commit dd827abe296fe4249b2f8c9b95f72f814ea8348c ]

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

Fixes: a8ea8bdd9df9 ("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
..
2020-10-30 17:34:45 +11:00
2021-07-01 11:06:05 -07:00
2020-09-25 17:48:53 +10:00
2020-09-25 17:48:53 +10:00
2020-09-25 17:48:53 +10:00
2020-07-31 18:08:59 +10:00
2021-07-01 11:06:05 -07:00
2020-09-25 17:48:53 +10:00
2021-08-12 19:17:00 +08:00