nuttx/drivers/pci
Old-Ding 3c05de7273 drivers: pci: Fix EPF debug assertions
pci_epf_device_register() and pci_epf_unregister_driver() used || in DEBUGASSERT expressions that validate a pointer and a required field or callback. If the pointer is NULL, the right-hand side dereferences it; if the pointer is valid but the required member is NULL, the assertion passes.

Require both conditions in each assertion so the debug checks match the preconditions used later in the functions.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-06 19:56:58 +08: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 19:56:02 +08: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 19:56:58 +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