]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mvebu-uart: fix return value check in mvebu_uart_clock_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 1 Mar 2022 07:58:06 +0000 (07:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Mar 2022 21:17:10 +0000 (22:17 +0100)
commitc5e298f94ea2b428a049f738850e9264b2f0b4f3
tree3faccc46a208a4fcc321d657f40e91190c09fe74
parent7963e6a485ff4d8e43b5f82225ec9c01146a38d7
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: 57e8d135a06f ("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>
drivers/tty/serial/mvebu-uart.c