tty: serial: ma35d1_serial: Add missing check for ioremap
authorChen Ni <nichen@iscas.ac.cn>
Fri, 15 Sep 2023 07:11:06 +0000 (07:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2023 09:14:42 +0000 (11:14 +0200)
commit4556c36f4a23fb218763cdb7a20f6a94f4faf1f8
tree901a067342c60e684075f82a2f6f578c4aa455fe
parentce9ecca0238b140b88f43859b211c9fdfd8e5b70
tty: serial: ma35d1_serial: Add missing check for ioremap

Add check for ioremap() and return the error if it fails in order to
guarantee the success of ioremap().

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Acked-by: Jacky Huang <ychuang3@nuvoton.com>
Link: https://lore.kernel.org/r/20230915071106.3347-1-nichen@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/ma35d1_serial.c