mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 05:57:16 +00:00
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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||
| pci.c | ||
| pci_drivers.c | ||
| pci_drivers.h | ||
| pci_ecam.c | ||
| pci_ep_test.c | ||
| pci_epc.c | ||
| pci_epc_mem.c | ||
| pci_epf.c | ||
| pci_epf_test.c | ||
| pci_ivshmem.c | ||
| pci_qemu_edu.c | ||
| pci_qemu_epc.c | ||
| pci_qemu_test.c | ||
| pci_uio_ivshmem.c | ||