Home
last modified time | relevance | path

Searched hist:ac5d32d15c3f950d983740aed5403f570ac15c62 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Dether.cac5d32d15c3f950d983740aed5403f570ac15c62 Wed Sep 22 09:13:55 UTC 2010 Vitaly Kuzmichev <vkuzmichev@mvista.com> 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>