commit | ac5d32d15c3f950d983740aed5403f570ac15c62 | [log] [tgz] |
---|---|---|
author | Vitaly Kuzmichev <vkuzmichev@mvista.com> | Wed Sep 22 13:13:55 2010 +0400 |
committer | Remy Bohmer <linux@bohmer.net> | Wed Oct 13 12:07:58 2010 +0200 |
tree | fd3ddfe97d751ba5969537ffb0b36e9fa27a4acc | |
parent | f2443d10ff3d4b0e3c3eb68ce43d7f26468a1b00 [diff] |
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>