Skip to content
Snippets Groups Projects
Commit b059c81a authored by Frank Gevaerts's avatar Frank Gevaerts Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB Serial: clean tty fields on failed device open


If either the driver's open() method or try_module_get() fails, we need to
set 'tty->driver_data' and 'port->tty' to NULL in serial_open(), otherwise
we'll get an OOPS in usb_device_disconnect() when the device is disconnected.

Signed-off-by: default avatarFrank Gevaerts <frank.gevaerts@fks.be>
Acked-by: default avatarLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4186c29c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment