From: Frank Gevaerts Date: Wed, 14 Jun 2006 13:52:05 +0000 (+0200) Subject: [PATCH] USB Serial: clean tty fields on failed device open X-Git-Tag: v2.6.18-rc1~858^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b059c81af7a1759a911cfc20ce8a4bf47c435830;p=pandora-kernel.git [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 Acked-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed