Correct USB mass storage memory leak

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3820 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-07-26 17:27:57 +00:00
parent f41d4fb0e3
commit fc7db01820
4 changed files with 27 additions and 35 deletions
+8 -1
View File
@@ -1944,4 +1944,11 @@
Distribution Format (BDF) into fonts that can be used in the NX graphics
system.
* include/nuttx/nx: Move all NX header files from include/nuttx to
include/nuttx/nx.
include/nuttx/nx.
* drivers/usbdev/usbdev_usbstorage.c and arch/arm/src/stm32/stm32_usbdev.c:
Correct a memory leak when the USB mass storage driver is connected and
then disconnected from the target. The write requests were not being
freed. NOTE that the unregister logic in the STM32 needed to call
stm32_reset() in order to return the write requests to the USB mass
storage driver; it is possible that a similar but could exist for other
architectures.