Old-Ding opened a new pull request, #19331:
URL: https://github.com/apache/nuttx/pull/19331

   ## Summary
   - reject missing PCI endpoint MSI mapping callbacks before dereferencing the 
endpoint controller
   - make PCI EPF debug assertions require both the object and callback/name 
pointers to be valid
   
   ## Rationale
   The existing guard expressions used && or || in a way that could dereference 
a null pointer while evaluating the guard itself. The fixed checks follow the 
surrounding PCI endpoint guard style and keep the validation at the call 
boundary.
   
   ## Testing
   - git diff --check
   - git show --stat --check --format=fuller HEAD
   - git ls-files --eol -- drivers\\pci\\pci_epc.c drivers\\pci\\pci_epf.c


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to