usb: gadget: mv_u3d_core: fix memory leaks
authorValentin Ilie <valentin.ilie@gmail.com>
Sat, 21 Sep 2013 09:30:15 +0000 (12:30 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Oct 2013 14:31:21 +0000 (09:31 -0500)
commitf51a08da6d1d591c021c1aa0ee6dd23f7caf3639
tree9f16e51fdadf76c6deb15fe8239f611b2d72e527
parent161bfa98ba6f5b8970234e4392de1f5df4062452
usb: gadget: mv_u3d_core: fix memory leaks

When trb_hw is NULL, trb should be free'd before return.

Signed-off-by: Valentin Ilie <valentin.ilie@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/mv_u3d_core.c