linux/drivers/media
Baskov Evgeniy 0862d95b43 media: s5p-jpeg: handle error condition in s5p_jpeg_probe
If an error happens in jpeg_get_drv_data(), i.e. match fails,
jpeg->variant field is NULL, so we cannot access it.

Consider device probe failed if jpeg->variant is NULL.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Baskov Evgeniy <baskov@ispras.ru>
Acked-by: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-12-03 07:45:49 +01:00
..
cec media: cec-core: first mark device unregistered, then wake up fhs 2020-11-16 10:31:09 +01:00
common media: siano: fix memory leak of debugfs members in smsdvb_hotplug 2020-11-26 14:26:19 +01:00
dvb-core media: dvbdev: Fix memleak in dvb_register_device 2020-11-17 06:57:54 +01:00
dvb-frontends media: Replace HTTP links with HTTPS ones: SI2165 MEDIA DRIVER 2020-11-27 13:05:07 +01:00
firewire media: firewire: fix memory leak 2020-09-27 11:29:45 +02:00
i2c media: tvp5150: Fix wrong return value of tvp5150_parse_dt() 2020-12-03 07:37:33 +01:00
mc media: mc-device.c: change media_device_request_alloc to match media_ioctl_info 2020-08-29 08:15:23 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: cx88: use ARRAY_SIZE 2020-12-03 07:37:07 +01:00
platform media: s5p-jpeg: handle error condition in s5p_jpeg_probe 2020-12-03 07:45:49 +01:00
radio media: radio-sf16fmr2: use semicolons rather than commas to separate statements 2020-11-16 10:31:07 +01:00
rc media: rc: add keymap for KHAMSIN remote 2020-11-26 14:28:10 +01:00
spi media: i2c/Kconfig: use sub-menus for I2C support 2020-04-16 10:34:40 +02:00
test-drivers Linux 5.10-rc6 2020-12-01 16:21:40 +01:00
tuners media: tuners: reduce stack usage in mxl5005s_reconfigure 2020-11-27 13:47:42 +01:00
usb media: uvcvideo: Use DIV_ROUND_CLOSEST directly to make it readable 2020-11-27 10:19:29 +01:00
v4l2-core media: v4l2-fwnode: Remove v4l2_async_notifier_parse_fwnode_endpoints_by_port() 2020-12-02 16:13:59 +01:00
Kconfig media: Remove superfluous dependency for MEDIA_SUPPORT_FILTER 2020-11-27 12:19:25 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00