USB: g_serial: fix tty cleanup on unload
authorJon Povey <jon.povey@racelogic.co.uk>
Mon, 14 Jun 2010 10:42:10 +0000 (19:42 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Jun 2010 15:16:05 +0000 (08:16 -0700)
commitb23097b793081358a6d943263c91bae4c955c4e3
tree10537604461025c9983974be9b201b2af15bf003
parent44a0c0190b500ee6bcfc0976fe540f65dee2cd67
USB: g_serial: fix tty cleanup on unload

Call put_tty_driver() in cleanup function, to fix Oops when trying to open
gadget serial char device after module unload.

Signed-off-by: Jon Povey <jon.povey@racelogic.co.uk>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/u_serial.c