diff options
author | 2023-01-27 10:40:06 +0000 | |
---|---|---|
committer | 2023-01-28 14:36:28 +0100 | |
commit | b0576ade3aaf24b376ea1a4406ae138e2a22b0c0 (patch) | |
tree | 50d23ff70fd5c0e5a1d29f9f61d037c0b774730f /drivers/nvmem/sunxi_sid.c | |
parent | Linux 6.2-rc5 (diff) | |
download | linux-b0576ade3aaf24b376ea1a4406ae138e2a22b0c0.tar.gz linux-b0576ade3aaf24b376ea1a4406ae138e2a22b0c0.tar.bz2 linux-b0576ade3aaf24b376ea1a4406ae138e2a22b0c0.zip |
nvmem: brcm_nvram: Add check for kzalloc
Add the check for the return value of kzalloc in order to avoid
NULL pointer dereference.
Fixes: 6e977eaa8280 ("nvmem: brcm_nvram: parse NVRAM content into NVMEM cells")
Cc: stable@vger.kernel.org
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230127104015.23839-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/sunxi_sid.c')
0 files changed, 0 insertions, 0 deletions