USB: serial: io_edgeport: fix memory leaks in attach error path
authorJohan Hovold <johan@kernel.org>
Sun, 8 May 2016 18:07:56 +0000 (20:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 19:12:48 +0000 (12:12 -0700)
commit2f7760714163ced1b785a6f739495f12ef433015
tree4e803c3e2f157f8287435c84cc31fab42489646f
parent25d3b85bcf6156a3549da975a7a834c4f5b53185
USB: serial: io_edgeport: fix memory leaks in attach error path

commit c5c0c55598cefc826d6cfb0a417eeaee3631715c upstream.

Private data, URBs and buffers allocated for Epic devices during
attach were never released on errors (e.g. missing endpoints).

Fixes: 6e8cf7751f9f ("USB: add EPIC support to the io_edgeport driver")
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/io_edgeport.c