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)
committerJohan Hovold <johan@kernel.org>
Tue, 10 May 2016 07:39:09 +0000 (09:39 +0200)
commitc5c0c55598cefc826d6cfb0a417eeaee3631715c
tree460afdc5beb8b8eb0ac485953e5b5e10ff1aa78e
parentab5701ada2473b111c24ca7f4360b0cdb5badb60
USB: serial: io_edgeport: fix memory leaks in attach error path

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")
Cc: stable <stable@vger.kernel.org> # v2.6.21
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/io_edgeport.c