Johan Hovold db81de767e USB: mxuport: fix null deref when used as a console
Fix null-pointer dereference at probe when the device is used as a
console, in which case the tty argument to open will be NULL.

Fixes: ee467a1f2066 ("USB: serial: add Moxa UPORT 12XX/14XX/16XX
driver")
Cc: stable <stable@vger.kernel.org>	# v3.14
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Greg Kroah-Hartman <greg@kroah.com>
2015-02-26 17:13:59 +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