]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_bcm7271: Fix return value check in brcmuart_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 29 Mar 2021 14:06:59 +0000 (14:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Apr 2021 14:12:14 +0000 (16:12 +0200)
commit0c77c613c772a17a5aad8daccb944756adfca171
tree0a9a305b1162c6d4cbb63c9d85931264a4e8bf79
parentda52391bfad58b6af9922e0f3a1e75ead8510e98
serial: 8250_bcm7271: Fix return value check in brcmuart_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: f5eb8632b214 ("serial: 8250: Add new 8250-core based Broadcom STB driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210329140659.1832950-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_bcm7271.c