diff options
author | Frank Gevaerts <frank.gevaerts@fks.be> | 2006-06-14 15:52:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-22 00:04:17 +0200 |
commit | b059c81af7a1759a911cfc20ce8a4bf47c435830 (patch) | |
tree | 397568ad8fe0ebfd2ee504919f7ae8f12657703f /sound/Kconfig | |
parent | [PATCH] USB: trivial DEBUG message correction in gadget ether driver (diff) | |
download | linux-b059c81af7a1759a911cfc20ce8a4bf47c435830.tar.xz linux-b059c81af7a1759a911cfc20ce8a4bf47c435830.zip |
[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: Frank Gevaerts <frank.gevaerts@fks.be>
Acked-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound/Kconfig')
0 files changed, 0 insertions, 0 deletions