nuttx/drivers/pci
Old-Ding 888711ac3c drivers: pci: Fix EPC MSI IRQ map validation
pci_epc_map_msi_irq() used && when checking the EPC pointer and map_msi_irq callback. If epc is NULL, the right-hand side dereferences it; if the callback is NULL on a valid EPC, the guard does not reject it before the call.

Match the surrounding EPC wrappers by rejecting a NULL EPC, an out-of-range function number, or a missing map_msi_irq callback before taking the lock and invoking the operation.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-06 07:35:54 +02:00
..
CMakeLists.txt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
Kconfig pci: epf test default a function 2025-08-16 19:49:08 +08:00
Make.defs drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pci.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pci_drivers.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pci_drivers.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pci_ecam.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
pci_ep_test.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pci_epc.c drivers: pci: Fix EPC MSI IRQ map validation 2026-07-06 07:35:54 +02:00
pci_epc_mem.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pci_epf.c drivers: pci: Fix EPF debug assertions 2026-07-06 13:35:04 +08:00
pci_epf_test.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pci_ivshmem.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pci_qemu_edu.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pci_qemu_epc.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pci_qemu_test.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pci_uio_ivshmem.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00