mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08: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:
@@ -5919,4 +5919,9 @@
|
|||||||
header file (2013-10-31).
|
header file (2013-10-31).
|
||||||
* drivers/mtd/mtd_partition.c: Fix erase block vs page block confusion.
|
* drivers/mtd/mtd_partition.c: Fix erase block vs page block confusion.
|
||||||
From Ken Pettit (2013-10-31).
|
From Ken Pettit (2013-10-31).
|
||||||
|
* 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 nullified later usbdev_unregister when the caller gets the
|
||||||
|
error. From David Sidrane (2013-10-31).
|
||||||
|
|
||||||
|
|||||||
@@ -3637,7 +3637,6 @@ int usbdev_register(struct usbdevclass_driver_s *driver)
|
|||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
usbtrace(TRACE_DEVERROR(STM32_TRACEERR_BINDFAILED), (uint16_t)-ret);
|
usbtrace(TRACE_DEVERROR(STM32_TRACEERR_BINDFAILED), (uint16_t)-ret);
|
||||||
priv->driver = NULL;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user