USB: double put_tty_driver(gs_tty_driver) in gserial_setup()
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 25 Aug 2009 08:26:57 +0000 (10:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:37 +0000 (06:46 -0700)
commit48d316770bd4dcf3d21b53cfa91e358280c31d69
tree8a65b7cdfbdb23f6774e0a280f8a14e02d30cd39
parent2912282c06f219cf1634a624653c445329b37acf
USB: double put_tty_driver(gs_tty_driver) in gserial_setup()

If the driver cannot be registered, put_tty_driver(gs_tty_driver)
occurred here as well as at label fail.

put_tty_driver() already occurs at label fail

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/u_serial.c