mirror of
https://github.com/apache/nuttx.git
synced 2026-08-27 12:20:46 +00:00
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> |
||
|---|---|---|
| .. | ||
| 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 | ||