summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/fsl_lpuart.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2022-03-01 08:58:06 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-03-01 22:17:10 +0100
commit47b95e8ab731511b7ed7924ec3ec922e14737e4e (patch)
tree3faccc46a208a4fcc321d657f40e91190c09fe74 /drivers/tty/serial/fsl_lpuart.c
parentsc16is7xx: Set AUTOCTS and AUTORTS bits (diff)
downloadlinux-47b95e8ab731511b7ed7924ec3ec922e14737e4e.tar.xz
linux-47b95e8ab731511b7ed7924ec3ec922e14737e4e.zip
serial: mvebu-uart: fix return value check in mvebu_uart_clock_probe()
In case of error, the function devm_ioremap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: b7e2b5360f9b ("serial: mvebu-uart: implement UART clock driver for configuring UART base clock") Reported-by: Hulk Robot <hulkci@huawei.com> Reviewed-by: Pali Rohár <pali@kernel.org> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Link: https://lore.kernel.org/r/20220301075806.3950108-1-weiyongjun1@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/fsl_lpuart.c')
0 files changed, 0 insertions, 0 deletions