linux/drivers/media
Dafna Hirschfeld cbe8373ca7 media: rkisp1: rsz: crash fix when setting src format
When setting the source media bus code in the resizer,
we first check that the current media bus code in the
source is yuv encoded format. This is done by
retrieving the data from the formats list of the isp
entity. This cause a crash when the media bus code on the
source is YUYV8_1_5X8 which is not supported by the isp
entity. Instead we should test the sink format of the resizer
which is guaranteed to be supported by the isp entity.

Fixes: 251b6eebb6 ("media: staging: rkisp1: rsz: Add support to more YUV encoded mbus codes on src pad")
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Tested-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-03-11 11:59:45 +01:00
..
cec media: cec-notifier: also search for HDMI devices on I2C 2021-03-11 11:59:44 +01:00
common media: b2c2: remove trailing semicolon in macro definition 2021-03-11 11:59:45 +01:00
dvb-core media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +01:00
dvb-frontends media: mxl692: MaxLinear 692 ATSC demod/tuner driver 2021-02-05 23:37:59 +01:00
firewire media: firewire: fix memory leak 2020-09-27 11:29:45 +02:00
i2c media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +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: ngene: simplify the return expression of eeprom_write_ushort() 2021-03-11 11:59:45 +01:00
platform media: rkisp1: rsz: crash fix when setting src format 2021-03-11 11:59:45 +01:00
radio media: use getter/setter functions 2021-03-11 11:59:42 +01:00
rc media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +01:00
spi media: use getter/setter functions 2021-03-11 11:59:42 +01:00
test-drivers media: vivid: fix assignment of dev->fbuf_out_flags 2021-03-11 11:59:44 +01:00
tuners media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +01:00
usb media: anysee: simplify the return expression of anysee_ci_* function 2021-03-11 11:59:44 +01:00
v4l2-core media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +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