]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 22 Jun 2012 18:36:56 +0000 (11:36 -0700)
commitd2002eb8a3a9c6d9182e1652b3ec22f6dd20741b
treec728af09c01be125d09a5f7d719581dcab4976eb
parentc4962879787761e53777b1811787acb1753df7db
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>
drivers/usb/serial/option.c