linux/drivers/media/pci/intel/ipu6
Ethan Tidmore 8dd088b8b1 media: intel/ipu6: fix error pointer dereference
In a error path isp->psys is confirmed to be an error pointer not NULL so
this condition is true and the error pointer is dereferenced. So isp-psys
should be set to NULL before going to out_ipu6_bus_del_devices.

Detected by Smatch:
drivers/media/pci/intel/ipu6/ipu6.c:690 ipu6_pci_probe() error:
'isp->psys' dereferencing possible ERR_PTR()

Fixes: 25fedc0219 ("media: intel/ipu6: add Intel IPU6 PCI device driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
[Sakari Ailus: Fix commit message.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2026-03-11 01:05:35 +01: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: ipu6: fix the wrong type casting and 64-bit division 2024-10-16 09:32:41 +02: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: ipu6: Update e-mail addresses 2026-01-16 14:08:52 +01: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: intel/ipu6: fix error pointer dereference 2026-03-11 01:05:35 +01: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