linux/drivers/media/v4l2-core
Alexander Stein 6d8acd02c4 media: v4l: async: Fix notifier list entry init
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>
2024-04-10 15:15:30 +02:00
..
Kconfig media: remove the old videobuf framework 2023-09-27 09:40:01 +02:00
Makefile media: remove the old videobuf framework 2023-09-27 09:40:01 +02:00
tuner-core.c
v4l2-async.c media: v4l: async: Fix notifier list entry init 2024-04-10 15:15:30 +02:00
v4l2-cci.c media: v4l2: cci: print leading 0 on error 2024-02-01 13:35:34 +01:00
v4l2-common.c media: v4l2-common: Add Y210 and Y216 format info 2024-04-08 13:48:19 +02:00
v4l2-compat-ioctl32.c media: core: Report the maximum possible number of buffers for the queue 2023-11-23 12:38:05 +01:00
v4l2-ctrls-api.c media: v4l2-ctrls-core.c: check min/max for menu, controls 2024-02-16 11:46:32 +01:00
v4l2-ctrls-core.c media: v4l2-ctrls: add support for area type logging 2024-04-08 13:48:18 +02:00
v4l2-ctrls-defs.c
v4l2-ctrls-priv.h
v4l2-ctrls-request.c
v4l2-dev.c media: v4l2: Add REMOVE_BUFS ioctl 2024-03-25 12:00:44 +01:00
v4l2-device.c
v4l2-dv-timings.c
v4l2-event.c media: v4l2-event: Annotate struct v4l2_subscribed_event with __counted_by 2023-10-07 10:55:45 +02:00
v4l2-fh.c
v4l2-flash-led-class.c
v4l2-fwnode.c media: v4l: fwnode: Parse MIPI DisCo for Imaging properties 2023-12-04 10:37:47 +01:00
v4l2-h264.c
v4l2-i2c.c
v4l2-ioctl.c media: v4l2: Add REMOVE_BUFS ioctl 2024-03-25 12:00:44 +01:00
v4l2-jpeg.c
v4l2-mc.c media: v4l2-mc: Add debug prints for v4l2_fwnode_create_links_for_pad() 2024-01-22 17:23:59 +01:00
v4l2-mem2mem.c media: v4l2: Add mem2mem helpers for REMOVE_BUFS ioctl 2024-03-25 12:00:44 +01:00
v4l2-spi.c media: v4l2-subdev: Follow renaming of SPI "master" to "controller" 2024-02-08 11:54:42 +00:00
v4l2-subdev-priv.h
v4l2-subdev.c media: v4l2-subdev: Remove non-pad dv timing callbacks 2024-04-09 08:15:04 +02:00
v4l2-trace.c
v4l2-vp9.c