]> git.ipfire.org Git - people/ms/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 13:11:03 +0000 (14:11 +0100)
commita2cfb7dc7d236003bd8631f61a56a1d26d4b3b9c
tree0014fd90f6367548761c2351cad7f599f6a95a62
parent0db70c6d0c0d782ea2959278723a3d30bfa92de0
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/bus.c