mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 15:05:07 +00:00
arch/arm/src/stm32/stm32_usbdev.c: On a failure to bind the class driver, the driver reference was being nullified too soon. This caused an exception in usbdev_reset() later. The driver reference will be null
ified later usbdev_unregister when the caller gets the error. From David Sidrane
This commit is contained in:
parent
dfbaa301e7
commit
cfcd3cc74b
1 changed files with 0 additions and 1 deletions
|
|
@ -3637,7 +3637,6 @@ int usbdev_register(struct usbdevclass_driver_s *driver)
|
|||
if (ret)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(STM32_TRACEERR_BINDFAILED), (uint16_t)-ret);
|
||||
priv->driver = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue