drivers/tty: add error handling for pcmcia_loop_config
authorZhouyang Jia <jiazhouyang09@gmail.com>
Tue, 12 Jun 2018 04:36:25 +0000 (12:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:23:44 +0000 (21:23 +0900)
commit85c634e919bd6ef17427f26a52920aeba12e16ee
tree967a3a1f00cfbff0d8258226664191d73a96898b
parentbe70874498f3004bd602c77e07d14f4b11acd699
drivers/tty: add error handling for pcmcia_loop_config

When pcmcia_loop_config fails, the lack of error-handling code may
cause unexpected results.

This patch adds error-handling code after calling pcmcia_loop_config.

Signed-off-by: Zhouyang Jia <jiazhouyang09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/serial_cs.c