linux/drivers/media
Benjamin Gaignard f100ce3bbd media: verisilicon: Fix crash when probing encoder
ctx->vpu_dst_fmt is no more initialized before calling hantro_try_fmt()
so assigne it to vpu_fmt led to crash the kernel.
Like for decoder case use 'fmt' as format for encoder and clean up
the code.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Fixes: db6f68b51e ("media: verisilicon: Do not set context src/dst formats in reset functions")
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-04-13 12:58:55 +02:00
..
cec media: tegra_cec: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
common media: saa7146: drop overlay support 2023-03-20 00:27:04 +01:00
dvb-core Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
dvb-frontends media: zd1301_demod: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: i2c: imx290: Add missing \n on dev_err_probe() message 2023-04-11 18:54:02 +02:00
mc media: mc-device: remove unnecessary __must_check 2023-04-11 18:54:01 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: Use designated initializers for all subdev pad ops 2023-04-12 09:46:07 +02:00
platform media: verisilicon: Fix crash when probing encoder 2023-04-13 12:58:55 +02:00
radio media: radio-platform-si4713: Convert to platform remove callback returning void 2023-04-11 16:59:20 +02:00
rc media: rc: gpio-ir-recv: Fix support for wake-up 2023-04-12 09:19:05 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
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: Prefer designated initializers over memset for subdev pad ops 2023-04-12 09:46:06 +02:00
v4l2-core media: Accept non-subdev sinks in v4l2_create_fwnode_links_to_pad() 2023-04-11 18:54:01 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00