1
0
Fork 0
alistair23-linux/drivers/staging/media
Colin Ian King 343fc9a268 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>
2020-02-24 08:36:23 +01:00
..
allegro-dvt staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
hantro media: hantro: Set H264 FIELDPIC_FLAG_E flag correctly 2020-01-17 19:48:58 +01:00
imx media: staging/imx: Use a shorter name for driver 2019-12-31 16:44:41 +01:00
ipu3 media: intel-ipu3: Align struct ipu3_uapi_awb_fr_config_s to 32 bytes 2020-01-17 19:49:06 +01:00
meson/vdec media: meson: add missing allocation failure check on new_buf 2020-02-24 08:36:23 +01:00
omap4iss Staging/IIO driver patches for 5.4-rc1 2019-09-18 11:05:34 -07: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: Use correct H264 8x8 scaling list 2020-01-17 19:48:58 +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