TTY: hso, free tty_driver
authorJiri Slaby <jslaby@suse.cz>
Mon, 2 Apr 2012 11:54:04 +0000 (13:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 18:18:36 +0000 (11:18 -0700)
commitd230788f760043d9c69dbd3928b76f549bff5fb9
tree186aec69597bfe74ccb9aba87b87701d336db05b
parent005ce07f8068f9970f522a1a4ffeb9a9d108479a
TTY: hso, free tty_driver

Do not leak tty_driver structure on each module removal. Also do
proper frees in fail paths of module_init.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Jan Dumon <j.dumon@option.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/hso.c