linux/drivers/media/platform/marvell
Guangshuo Li 033ff0420e media: marvell-cam: fix missing pci_disable_device() on remove
During manual code audit, we found that cafe_pci_probe() enables the
PCI device with pci_enable_device(), and its probe error path properly
calls pci_disable_device() on failure.

However, cafe_pci_remove() tears down the controller and frees the
driver data without disabling the PCI device, leaving the remove path
inconsistent with probe cleanup.

Add the missing pci_disable_device() call to cafe_pci_remove().

Fixes: abfa3df36c ("[media] marvell-cam: Separate out the Marvell camera core")
Cc: stable@vger.kernel.org
Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2026-05-05 16:57:03 +02:00
..
cafe-driver.c media: marvell-cam: fix missing pci_disable_device() on remove 2026-05-05 16:57:03 +02:00
Kconfig media: v4l: marvell: select CONFIG_V4L2_ASYNC where needed 2024-02-16 11:46:33 +01:00
Makefile
mcam-core.c media: marvell: Add check for clk_enable() 2024-12-19 12:50:12 +01:00
mcam-core.h media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
mmp-driver.c media: mmp: Bring back registration of the device 2025-01-07 12:21:39 +01:00