yangsong8-a1 opened a new pull request, #22041:
URL: https://github.com/apache/nuttx/pull/22041

   ## Summary
   
   xhci_mem_free() passed priv->pg_sb[i] straight to kmm_free().  The
   scratchpad array holds the physical address of each page
   (up_addrenv_va_to_pa() in xhci_mem_alloc()), so the page was freed by
   its physical address, and the uint64_t to pointer cast is a build error
   where pointers are 32 bits.  Convert the address back with
   up_addrenv_pa_to_va() before freeing it.
   
   ## Impact
   
   drivers/usbhost/usbhost_xhci.c only.  No API or Kconfig change.
   
   ## Testing
   
   Ubuntu 22.04, x86_64-linux-gnu-gcc: qemu-intel64:jumbo
   (CONFIG_USBHOST_XHCI=y, CONFIG_USBHOST_XHCI_PCI=y) builds, no new
   warnings.
   


-- 
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