Skip to content
Snippets Groups Projects
Commit dd827abe authored by Zizhuang Deng's avatar Zizhuang Deng Committed by Herbert Xu
Browse files

lib/mpi: Add the return value check of kcalloc()


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

Fixes: a8ea8bdd ("lib/mpi: Extend the MPI library")
Signed-off-by: default avatarZizhuang Deng <sunsetdzz@gmail.com>
Reviewed-by: default avatarTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 4cab5dfd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment