USB: mos7840: fix memory leak in open
authorJohan Hovold <jhovold@gmail.com>
Mon, 1 Jul 2013 12:03:33 +0000 (14:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 18:30:17 +0000 (11:30 -0700)
commit5f8a2e68b679b41cc8e9b642f2f5aa45dd678641
treeb82e7c40cb32249e6ffed1b67e784819062e1ff0
parent878c69aae986ae97084458c0183a8c0a059865b1
USB: mos7840: fix memory leak in open

Allocated urbs and buffers were never freed on errors in open.

Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7840.c