USB: mxu11x0: fix memory leak on firmware download
authorJohan Hovold <johan@kernel.org>
Tue, 29 Dec 2015 12:36:12 +0000 (13:36 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 29 Dec 2015 12:43:14 +0000 (13:43 +0100)
commite69f7a6724182e3f3a4f3d73e74c08dd8f657a9d
tree8398a7be960fe7d085a07edf1f58fe5396989e90
parent924eccc73db2f64a24865d21ff11be8043b24375
USB: mxu11x0: fix memory leak on firmware download

Make sure to release the private data before returning -ENODEV after
having downloaded the firmware during first probe.

Clean up the error paths while at it.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mxu11x0.c