USB: option: fix memory leak
authorJohan Hovold <jhovold@gmail.com>
Tue, 29 May 2012 16:22:48 +0000 (18:22 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Jun 2012 22:18:23 +0000 (23:18 +0100)
commit78eb9cdad95f77edeed29661fd1e2e0f5ab103e6
tree9d73751e66dc01c51b5638377de3858dd5bd6fcd
parent6a0bee09c55f4c133826fdea42510b097a2a6ad8
USB: option: fix memory leak

commit b9c3aab315b51f81649a0d737c4c73783fbd8de0 upstream.

Fix memory leak introduced by commit 383cedc3bb435de7a2 ("USB: serial:
full autosuspend support for the option driver") which allocates
usb-serial data but never frees it.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/option.c