diff options
author | Wei Yongjun <[email protected]> | 2022-03-01 07:58:06 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-03-01 22:17:10 +0100 |
commit | 47b95e8ab731511b7ed7924ec3ec922e14737e4e (patch) | |
tree | 3faccc46a208a4fcc321d657f40e91190c09fe74 /drivers/tty/serial/sccnxp.c | |
parent | 6e124e58ae2e0e3f6400dce21e942a94a67a7949 (diff) |
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 <[email protected]>
Reviewed-by: Pali Rohár <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions