]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 2 Aug 2010 17:26:42 +0000 (10:26 -0700)
commit725861b20b3c1309eb67f46289efcdc9b41ffff8
tree58362df610cb3852b855c7135f1c692350fee638
parent5592fb92225d302b3e3039ed762bb1e1c55f9eea
USB: g_serial: fix tty cleanup on unload

commit b23097b793081358a6d943263c91bae4c955c4e3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/u_serial.c