mirror of
https://github.com/torvalds/linux.git
synced 2026-09-18 16:48:03 +02:00
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:
|
||
|---|---|---|
| .. | ||
| cafe-driver.c | ||
| Kconfig | ||
| Makefile | ||
| mcam-core.c | ||
| mcam-core.h | ||
| mmp-driver.c | ||