ChibiOS / ChibiOS-Contrib

Community contributed code (ports, drivers, etc).
130 stars 227 forks source link

[RP2040] Fix null dereference in `usb_lld_disable_endpoints` #375

Closed KarlK90 closed 1 year ago

KarlK90 commented 1 year ago

usb_lld_disable_endpoints is called by usbDisableEndpointsI, which already sets all endpoint configurations to NULL before. This will always lead to a hardfault. The fix is simple though, just remove the interaction.