tty: mxser: fix usage of opmode_ioaddr
authorMatwey V. Kornilov <matwey@sai.msu.ru>
Tue, 21 May 2013 09:57:37 +0000 (13:57 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2013 17:26:05 +0000 (10:26 -0700)
commitdfc7b837c7f9f01f76511aa3eeea35232903e58f
treeb68e1bd4ebeb5e5d20b2f92b53e9beb0d51a3d76
parent9d83e1807e6462ac5c4edb7eae96c69594e8c8ef
tty: mxser: fix usage of opmode_ioaddr

mxser_port->opmode_ioaddr is initialized only for MOXA_MUST_MU860_HWID
chips, but no precautions have been undertaken to prevent reading and
writing to undefined port number.

Signed-off-by: Matwey V. Kornilov <matwey@sai.msu.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c