Johan Hovold ca4383a394 USB: serial: fix tty-device error handling at probe
Add missing error handling when registering the tty device at port
probe. This avoids trying to remove an uninitialised character device
when the port device is removed.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: Takashi Iwai <tiwai@suse.de>
Cc: stable <stable@vger.kernel.org>	# v2.6.12
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Greg Kroah-Hartman <greg@kroah.com>
2015-02-26 17:12:35 +01:00
..
2015-02-26 17:06:39 +01:00
2014-11-26 10:41:46 -08:00
2014-09-15 18:43:08 +02:00
2015-01-19 15:58:16 +01:00
2014-09-01 11:55:30 +02:00
2014-12-14 14:57:16 -08:00