arikimari opened a new pull request, #18361:
URL: https://github.com/apache/nuttx/pull/18361

   Fix DEBUGASSERT on usbmsc_unbind() function
   
   ## Summary
   
   1. Move DEBUGASSERT to correct place (inside priv != NULL)
   2. Leave it out if composite device
   3. Update assert comment
   
   ## Impact
   
   Devices using usb msc as composite device and have
   CONFIG_DEBUG_ASSERTIONS enabled
   
   ## Testing
   
   Tested with custom npx93 HW
   
   Function call chain without this fix:
   
   composite_uninitialize()
   composite_unbind()
   usbmsc_unbind()
   Current Version: NuttX  12.11.0 6975be413a-dirty Feb  6 2026 13:53:32 arm64
   Assertion failed : at file: :0 task: bootloader_main process: 
bootloader_main 0x80010714
   
   Function call chain with this fix:
   
   composite_uninitialize()
   composite_unbind()
   usbmsc_unbind()
   usbmsc_uninitialize()
   


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