linux/drivers/media/pci/intel/ipu6
Cong Nguyen abb1f808ce media: intel/ipu6: fix async notifier cleanup leak on parse error
isys_notifier_init() calls v4l2_async_nf_init() and then adds fwnode
remote subdevs in a loop with v4l2_async_nf_add_fwnode_remote(). If an
endpoint parse or add fails partway through the loop, it jumps to
err_parse and returns without calling v4l2_async_nf_cleanup(), leaking
every v4l2_async_connection already added to the notifier's waiting
list.

The register-failure path just below already cleans up correctly, and
the caller only tears the notifier down (isys_notifier_cleanup()) once
isys_notifier_init() has returned success. Clean up the notifier on the
parse error path too.

Fixes: f50c4ca0a8 ("media: intel/ipu6: add the main input system driver")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4
Signed-off-by: Cong Nguyen <congnt264@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
2026-08-10 11:55:59 +03:00
..
ipu6-bus.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ipu6-bus.h media: intel/ipu6: Minor dma_mask clenaup 2025-04-25 10:15:35 +02:00
ipu6-buttress.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ipu6-buttress.h media: intel/ipu6: Constify ipu6_buttress_ctrl structure 2025-04-25 10:15:20 +02:00
ipu6-cpd.c [GIT PULL for v6.14] media updates 2025-01-25 15:59:46 -08:00
ipu6-cpd.h media: intel/ipu6: CPD parsing for get firmware components 2024-04-29 14:56:37 +02:00
ipu6-dma.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ipu6-dma.h media: intel/ipu6: Minor dma_mask clenaup 2025-04-25 10:15:35 +02:00
ipu6-fw-com.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ipu6-fw-com.h media: intel/ipu6: add syscom interfaces between firmware and driver 2024-04-29 14:56:38 +02:00
ipu6-fw-isys.c media: intel/ipu6: input system ABI between firmware and driver 2024-04-29 14:56:38 +02:00
ipu6-fw-isys.h media: intel/ipu6: input system ABI between firmware and driver 2024-04-29 14:56:38 +02:00
ipu6-isys-csi2.c media: ipu6: Obtain remote pad using media_pad_remote_pad_unique() 2026-01-13 12:47:56 +01:00
ipu6-isys-csi2.h media: intel/ipu6: Remove unused ipu6_isys_csi2_pdata 2025-05-06 13:06:29 +02:00
ipu6-isys-dwc-phy.c media: intel/ipu6: Improve DWC PHY HSFREQRANGE band selection for overlapping ranges 2026-05-05 15:27:36 +03:00
ipu6-isys-jsl-phy.c media: intel/ipu6: add the CSI2 DPHY implementation 2024-04-29 14:56:38 +02:00
ipu6-isys-mcd-phy.c media: intel/ipu6: add the CSI2 DPHY implementation 2024-04-29 14:56:38 +02:00
ipu6-isys-queue.c media: ipu6: Always call video_device_pipeline_alloc_start() 2026-01-13 12:47:56 +01:00
ipu6-isys-queue.h media: ipu6: Drop error argument from ipu6_isys_stream_start() 2026-01-13 12:47:56 +01:00
ipu6-isys-subdev.c media: ipu6: Drop custom functions to obtain sd state information 2026-01-13 12:47:56 +01:00
ipu6-isys-subdev.h media: ipu6: Drop custom functions to obtain sd state information 2026-01-13 12:47:56 +01:00
ipu6-isys-video.c media: ipu6: Always call video_device_pipeline_alloc_start() 2026-01-13 12:47:56 +01:00
ipu6-isys-video.h media: ipu6: Remove source_entity from struct ipu6_isys_stream 2026-01-13 12:47:56 +01:00
ipu6-isys.c media: intel/ipu6: fix async notifier cleanup leak on parse error 2026-08-10 11:55:59 +03:00
ipu6-isys.h media: ipu6: Make symbols static 2026-01-13 12:47:56 +01:00
ipu6-mmu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ipu6-mmu.h media: ipu6: make the ipu6_mmu_unmap() as a void function 2024-11-07 09:05:58 +01:00
ipu6-platform-buttress-regs.h media: intel/ipu6: remove buttress ish structure 2024-11-07 09:05:58 +01:00
ipu6-platform-isys-csi2-reg.h media: intel/ipu6: add IPU6 CSI2 receiver v4l2 sub-device 2024-04-29 14:56:38 +02:00
ipu6-platform-regs.h
ipu6.c media: ipu6: Do not free aux device pdata after init 2026-07-15 11:13:57 +03:00
ipu6.h
Kconfig media: ipu6: remove architecture DMA ops dependency in Kconfig 2024-11-07 09:05:56 +01:00
Makefile media: intel/ipu6: add Kconfig and Makefile 2024-04-29 14:56:38 +02:00