linux-brain/drivers/media/platform/qcom/venus
Colin Ian King f865b316cc media: venus: venc: Fix potential null pointer dereference on pointer fmt
[ Upstream commit 09ea9719a423fc675d40dd05407165e161ea0c48 ]

Currently the call to find_format can potentially return a NULL to
fmt and the nullpointer is later dereferenced on the assignment of
pixmp->num_planes = fmt->num_planes.  Fix this by adding a NULL pointer
check and returning NULL for the failure case.

Addresses-Coverity: ("Dereference null return")

Fixes: aaaa93eda6 ("[media] media: venus: venc: add video encoder files")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-15 09:47:33 +02:00
..
core.c media: venus: core: Fix runtime PM imbalance in venus_probe 2020-10-29 09:58:03 +01:00
core.h media: venus: vdec: flag OUTPUT formats with V4L2_FMT_FLAG_DYN_RESOLUTION 2019-08-19 14:57:09 -03:00
firmware.c media: venus: firmware: Ignore secure call error on first resume 2020-04-17 10:50:08 +02:00
firmware.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
helpers.c media: venus: dec: populate properly timestamps and flags for capture buffers 2019-08-05 10:57:51 -03:00
helpers.h media: venus: dec: populate properly timestamps and flags for capture buffers 2019-08-05 10:57:51 -03:00
hfi_cmds.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
hfi_cmds.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
hfi_helper.h media updates for v5.2-rc1 2019-06-12 05:57:05 -10:00
hfi_msgs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
hfi_msgs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
hfi_parser.c media: venus: hfi_parser: Ignore HEVC encoding for V1 2020-04-17 10:50:00 +02:00
hfi_parser.h media: venus: hfi_parser: add common capability parser 2018-07-25 08:49:58 -04:00
hfi_venus_io.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
hfi_venus.c media: venus: Fix occasionally failures to suspend 2019-12-31 16:43:35 +01:00
hfi_venus.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
hfi.c media: venus: hfi: return an error if session_init is already called 2019-08-05 10:51:28 -03:00
hfi.h media: venus: hfi: add type argument to hfi flush function 2019-08-05 10:50:56 -03:00
Makefile media: venus: hfi_parser: add common capability parser 2018-07-25 08:49:58 -04:00
vdec_ctrls.c media: venus: vdec_ctrls: get real minimum buffers for capture 2019-08-05 10:52:17 -03:00
vdec.c media: venus: fixes for list corruption 2020-10-29 09:58:03 +01:00
vdec.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
venc_ctrls.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
venc.c media: venus: venc: Fix potential null pointer dereference on pointer fmt 2021-09-15 09:47:33 +02:00
venc.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00