From: Johan Hovold Date: Wed, 18 Feb 2015 03:34:51 +0000 (+0700) Subject: USB: serial: fix tty-device error handling at probe X-Git-Tag: omap-for-v4.1/wl12xx-dt~45^2~2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca4383a3947a83286bc9b9c598a1f55e867871d7;p=pandora-kernel.git 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 Cc: stable # v2.6.12 Signed-off-by: Johan Hovold Acked-by: Greg Kroah-Hartman --- Reading git-diff-tree failed