Re: [U-Boot] [PATCH 1/2] USB-CDC: Fix tx/rx_req memory leaks

2010-10-09 Thread Remy Bohmer
Hi, 2010/9/22 : > From: Vitaly Kuzmichev > > 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, le

[U-Boot] [PATCH 1/2] USB-CDC: Fix tx/rx_req memory leaks

2010-09-22 Thread vkuzmichev
From: Vitaly Kuzmichev 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