linux-stable/drivers/media
Hans Verkuil 4d299e6e0a media: platform: mediatek: vpu: fix NULL ptr dereference
[ Upstream commit 3df55cd773 ]

If pdev is NULL, then it is still dereferenced.

This fixes this smatch warning:

drivers/media/platform/mediatek/vpu/mtk_vpu.c:570 vpu_load_firmware() warn: address of NULL pointer 'pdev'

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Yunfei Dong <yunfei.dong@mediatek.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-23 17:32:30 +02:00
..
cec media: cec: i2c: ch7322: also select REGMAP 2023-07-19 16:36:41 +02:00
common media: common: saa7146: Avoid a leak in vmalloc_to_sg() 2023-07-19 16:36:28 +02:00
dvb-core Revert "media: dvb-core: Fix use-after-free on race condition at dvb_frontend" 2023-06-14 23:16:29 +01:00
dvb-frontends media: mn88443x: fix !CONFIG_OF error by drop of_match_ptr from ID table 2023-05-14 06:30:16 +01:00
firewire
i2c media: tc358746: Address compiler warnings 2023-08-03 10:25:48 +02:00
mc media: mc-device: remove unnecessary __must_check 2023-04-11 18:54:01 +02:00
mmc
pci media: netup_unidvb: fix irq init by register it at the end of probe 2023-05-14 06:30:13 +01:00
platform media: platform: mediatek: vpu: fix NULL ptr dereference 2023-08-23 17:32:30 +02:00
radio USB / Thunderbolt changes for 6.4-rc1 2023-04-27 11:42:11 -07:00
rc Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
spi
test-drivers media: Zero-initialize all structures passed to subdev pad operations 2023-04-12 09:46:06 +02:00
tuners media: it913x: Convert to platform remove callback returning void 2023-04-11 16:59:21 +02:00
usb media: usb: siano: Fix warning due to null work_func_t function pointer 2023-07-19 16:36:28 +02:00
v4l2-core media: v4l2-mc: Drop subdev check in v4l2_create_fwnode_links_to_pad() 2023-06-02 18:45:24 +01:00
Kconfig
Makefile