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>
Sun, 4 Aug 2013 08:50:47 +0000 (16:50 +0800)
commitd3fe9f67d94aaba648a3df948750658059340cde
tree8de7c390b3d27107e6a237d8f86441f21db45b6e
parentc65b5f6ade7209fc5eda9f0779de4ee254a6bb78
USB: mos7840: fix memory leak in open

commit 5f8a2e68b679b41cc8e9b642f2f5aa45dd678641 upstream.

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

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