diff options
author | Vitaly Kuzmichev <vkuzmichev@mvista.com> | 2010-09-22 13:13:55 +0400 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2010-10-13 12:07:58 +0200 |
commit | ac5d32d15c3f950d983740aed5403f570ac15c62 (patch) | |
tree | fd3ddfe97d751ba5969537ffb0b36e9fa27a4acc /Makefile | |
parent | f2443d10ff3d4b0e3c3eb68ce43d7f26468a1b00 (diff) | |
download | u-boot-imx-ac5d32d15c3f950d983740aed5403f570ac15c62.zip u-boot-imx-ac5d32d15c3f950d983740aed5403f570ac15c62.tar.gz u-boot-imx-ac5d32d15c3f950d983740aed5403f570ac15c62.tar.bz2 |
USB-CDC: Fix tx/rx_req memory leaks
Remove and fix needless and destructive operations with tx/rx_req.
1) 'req' in rx_complete is always not NULL and always equals to rx_req
2) Free allocated tx_req if rx_req allocation has failed
3) Do not zero out tx/rx_req in usb_eth_init, leave this for
eth_reset_config which will be called at the next use of usb0
4) Additional check in usb_eth_recv is not required
Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions