linux/drivers/media
Alexander Stein a80d1da923 media: v4l: async: Fix notifier list entry init
commit 6d8acd02c4 upstream.

struct v4l2_async_notifier has several list_head members, but only
waiting_list and done_list are initialized. notifier_entry was kept
'zeroed' leading to an uninitialized list_head.
This results in a NULL-pointer dereference if csi2_async_register() fails,
e.g. node for remote endpoint is disabled, and returns -ENOTCONN.
The following calls to v4l2_async_nf_unregister() results in a NULL
pointer dereference.
Add the missing list head initializer.

Fixes: b8ec754ae4 ("media: v4l: async: Set v4l2_device and subdev in async notifier init")
Cc: <stable@vger.kernel.org> # for 6.6 and later
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:47:36 +02:00
..
cec media: cec: core: avoid confusing "transmit timed out" message 2024-06-12 11:12:43 +02:00
common media: videobuf2: request more buffers for vb2_read 2024-04-27 17:11:30 +02:00
dvb-core media: edia: dvbdev: fix a use-after-free 2024-03-26 18:19:45 -04:00
dvb-frontends media: mxl5xx: Move xpt structures off stack 2024-06-16 13:47:35 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: ov2680: Do not fail if data-lanes property is absent 2024-06-12 11:12:38 +02:00
mc media: mc: mark the media devnode as registered from the, start 2024-06-16 13:47:35 +02:00
mmc
pci media: ipu3-cio2: Request IRQ earlier 2024-06-12 11:12:01 +02:00
platform media: vsp1: Remove unbalanced .s_stream(0) calls 2024-06-12 11:13:02 +02:00
radio media: radio-shark2: Avoid led_names truncations 2024-06-12 11:12:01 +02:00
rc pwm: Rename pwm_apply_state() to pwm_apply_might_sleep() 2024-06-12 11:12:24 +02:00
spi
test-drivers media: visl: Hook the (TRY_)DECODER_CMD stateless ioctls 2024-01-25 15:35:32 -08:00
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-04-03 15:28:17 +02:00
usb media: flexcop-usb: fix sanity check of bNumEndpoints 2024-06-12 11:12:42 +02:00
v4l2-core media: v4l: async: Fix notifier list entry init 2024-06-16 13:47:36 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile