summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorVitaly Kuzmichev <vkuzmichev@mvista.com>2010-09-22 13:13:55 +0400
committerRemy Bohmer <linux@bohmer.net>2010-10-13 12:07:58 +0200
commitac5d32d15c3f950d983740aed5403f570ac15c62 (patch)
treefd3ddfe97d751ba5969537ffb0b36e9fa27a4acc /common
parentf2443d10ff3d4b0e3c3eb68ce43d7f26468a1b00 (diff)
downloadtalos-obmc-uboot-ac5d32d15c3f950d983740aed5403f570ac15c62.tar.gz
talos-obmc-uboot-ac5d32d15c3f950d983740aed5403f570ac15c62.zip
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 'common')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud