]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb510311e18cde735654c48c2731d9c190add8237
treec7004c23c1f6127c69eba6e44a21e27f4fa20223
parent55eb2532adb9f663f53311e4696726cbd819ed1f
USB: option: fix memory leak

Fix memory leak introduced by commit a2521e4271fe5641de ("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