WSL2-Linux-Kernel/drivers/media/platform/coda
Jiasheng Jiang 441c05485c media: coda: Add check for kmalloc
[ Upstream commit 6e5e5defdb ]

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: cb1d3a3363 ("[media] coda: add CODA7541 JPEG support")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:14:18 +01:00
..
Makefile media: drivers: media: coda: fix warning same module names 2019-06-12 10:45:05 -04:00
coda-bit.c media: coda: Add check for kmalloc 2022-12-31 13:14:18 +01:00
coda-common.c media: coda: Add more H264 levels for CODA960 2022-06-09 10:23:25 +02:00
coda-gdi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
coda-h264.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
coda-jpeg.c media: coda: jpeg: Add check for kmalloc 2022-12-31 13:14:06 +01:00
coda-mpeg2.c media: coda: pad first buffer with repeated MPEG headers to fix sequence init 2019-06-24 14:30:59 -04:00
coda-mpeg4.c media: coda: pad first buffer with repeated MPEG headers to fix sequence init 2019-06-24 14:30:59 -04:00
coda.h media: coda: Add a V4L2 user for control error macroblocks count 2020-11-16 10:31:16 +01:00
coda_regs.h media: coda: jpeg: add JPEG register definitions for CODA960 2019-12-16 10:04:21 +01:00
imx-vdoa.c media: coda/imx-vdoa: Handle dma_set_coherent_mask error codes 2022-01-27 11:03:37 +01:00
imx-vdoa.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
trace.h media: coda: jpeg: add CODA960 JPEG encoder support 2019-12-16 10:07:59 +01:00