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: v3.2.69~150 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffd9140bd28948bc7a419d92fdd1707db24d60aa;p=pandora-kernel.git 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 Signed-off-by: Johan Hovold Acked-by: Greg Kroah-Hartman [bwh: Backported to 3.2: - Adjust context - No need to clean up autopm] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed