linux/drivers/staging/media
Colin Ian King e4629dcf3e media: meson: add missing allocation failure check on new_buf
[ Upstream commit 11e0e167d0 ]

Currently if the allocation of new_buf fails then a null pointer
dereference occurs when assiging new_buf->vb. Avoid this by returning
early on a memory allocation failure as there is not much more can
be done at this point.

Addresses-Coverity: ("Dereference null return")

Fixes: 3e7f51bd96 ("media: meson: add v4l2 m2m video decoder driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2020-02-24 08:38:00 +01:00
..
allegro-dvt media: staging: media: allegro-dvt: remove bool comparison 2019-11-05 09:08:36 -03:00
hantro media: hantro: Set H264 FIELDPIC_FLAG_E flag correctly 2019-11-10 18:00:08 +01:00
imx media: staging/imx: Use a shorter name for driver 2019-11-05 09:09:18 -03:00
ipu3 media: intel-ipu3: Align struct ipu3_uapi_awb_fr_config_s to 32 bytes 2020-01-03 15:02:59 +01:00
meson/vdec media: meson: add missing allocation failure check on new_buf 2020-02-24 08:38:00 +01:00
omap4iss media: staging: media: Make use of devm_platform_ioremap_resource 2019-10-16 16:35:15 -03:00
soc_camera media: drivers/staging/media: don't set description for ENUM_FMT 2019-07-22 14:41:32 -04:00
sunxi media: cedrus: Increase maximum supported size 2019-11-10 07:44:10 +01:00
tegra-vde media: staging: tegra-vde: Fix build error 2019-08-07 17:04:12 -03:00
Kconfig media: staging: davinci: remove vpfe driver 2019-07-25 06:33:14 -04:00
Makefile media: staging: davinci: remove vpfe driver 2019-07-25 06:33:14 -04:00