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: ee467a1f ("USB: serial: add Moxa UPORT 12XX/14XX/16XX driver") Cc: stable <stable@vger.kernel.org> # v3.14 Signed-off-by: NJohan Hovold <johan@kernel.org> Acked-by: NGreg Kroah-Hartman <greg@kroah.com>
Showing
想要评论请 注册 或 登录