]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: serial: fix tty-device error handling at probe
authorJohan Hovold <johan@kernel.org>
Wed, 18 Feb 2015 03:34:51 +0000 (10:34 +0700)
committerJiri Slaby <jslaby@suse.cz>
Thu, 12 Mar 2015 16:31:18 +0000 (17:31 +0100)
commitc37650731ba0255f4f8af11e4a6be982e1c7ff6f
tree1b50b5b7329cf6e5244262554c8963b3fdedbbbb
parent63953db3a9758add929a797d61f76450a9117624
USB: serial: fix tty-device error handling at probe

commit ca4383a3947a83286bc9b9c598a1f55e867871d7 upstream.

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>
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Greg Kroah-Hartman <greg@kroah.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/serial/bus.c