[PATCH] drivers/usbdev/cdcacm.c: fix memory leak of RX failsafe timer

9 views
Skip to first unread message

Juha Niskanen (Haltian)

unread,
Oct 8, 2019, 6:33:08 AM10/8/19
to NuttX
Hi Greg,

Patch fixes a memory leak that I found when doing something like this in my PM code:

/* Uninitialize USB console before Stop 2 (STM32L4 USB FS peripheral must be in reset state) */
cdcacm_uninitialize()
up_usbuninitialize()

stm32l4_pmstop2();

up_usbinitialize()
cdcacm_initialize()
...

Best Regards,
   Juha


0001-drivers-usbdev-cdcacm.c-fix-memory-leak-of-RX-failsa.patch
Reply all
Reply to author
Forward
0 new messages