OSDN Git Service

USB: option: fix memory leak
authorJohan Hovold <jhovold@gmail.com>
Tue, 29 May 2012 16:22:48 +0000 (18:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 23:09:50 +0000 (16:09 -0700)
commitb9c3aab315b51f81649a0d737c4c73783fbd8de0
treec7004c23c1f6127c69eba6e44a21e27f4fa20223
parent4273f9878b0a8271df055e3c8f2e7f08c6a4a2f4
USB: option: fix memory leak

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.

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