diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2022-11-17 15:02:36 +0800 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-12-07 17:58:47 +0100 |
commit | 6e5e5defdb8b0186312c2f855ace175aee6daf9b (patch) | |
tree | 507f1aab0991d694b3af34431d08a07b7ccfffc8 /drivers/mtd/lpddr/lpddr2_nvm.c | |
parent | 6b8082238fb8bb20f67e46388123e67a5bbc558d (diff) | |
download | linux-6e5e5defdb8b0186312c2f855ace175aee6daf9b.tar.bz2 |
media: coda: Add check for kmalloc
As the kmalloc may return NULL pointer,
it should be better to check the return value
in order to avoid NULL poineter dereference,
same as the others.
Fixes: cb1d3a336371 ("[media] coda: add CODA7541 JPEG support")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr2_nvm.c')
0 files changed, 0 insertions, 0 deletions