linux-stable/drivers/staging/media/meson/vdec
Jiasheng Jiang 879ab4096e media: meson: vdec: potential dereference of null pointer
[ Upstream commit c8c80c9961 ]

As the possible failure of the kzalloc(), the 'new_ts' could be NULL
pointer.
Therefore, it should be better to check it in order to avoid the
dereference of the NULL pointer.
Also, the caller esparser_queue() needs to deal with the return value of
the amvdec_add_ts().

Fixes: 876f123b89 ("media: meson: vdec: bring up to compliance")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Suggested-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 13:57:43 +02:00
..
codec_h264.c
codec_h264.h
codec_hevc_common.c
codec_hevc_common.h
codec_mpeg12.c
codec_mpeg12.h
codec_vp9.c
codec_vp9.h
dos_regs.h
esparser.c media: meson: vdec: potential dereference of null pointer 2022-04-08 13:57:43 +02:00
esparser.h media: staging/media/meson: vdec.h: fix kerneldoc warnings 2021-09-30 10:08:00 +02:00
hevc_regs.h
Kconfig
Makefile
TODO
vdec.c media: Media: meson: vdec: Use devm_platform_ioremap_resource_byname() 2021-09-30 10:07:58 +02:00
vdec.h media: staging/media/meson: vdec.h: fix kerneldoc warnings 2021-09-30 10:08:00 +02:00
vdec_1.c
vdec_1.h
vdec_helpers.c media: meson: vdec: potential dereference of null pointer 2022-04-08 13:57:43 +02:00
vdec_helpers.h media: meson: vdec: potential dereference of null pointer 2022-04-08 13:57:43 +02:00
vdec_hevc.c
vdec_hevc.h
vdec_platform.c
vdec_platform.h