]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: zynqmp-ipi: Fix NULL vs IS_ERR() check in zynqmp_ipi_mbox_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 29 Apr 2020 09:35:03 +0000 (09:35 +0000)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 May 2020 23:08:40 +0000 (18:08 -0500)
commit89330749473a2598407de3c41aa255d34c8d9b96
treeb0f527f998c37a5da0afe3841ffa7301874319cf
parentd38cab448d71be6c8e41c2ca9bbcfb6ab1d458e8
mailbox: zynqmp-ipi: Fix NULL vs IS_ERR() check in zynqmp_ipi_mbox_probe()

In case of error, the function devm_ioremap() returns NULL pointer not
ERR_PTR(). So we should check whether the return value of devm_ioremap()
is NULL instead of IS_ERR.

Fixes: 4a364c29c7e1 ("mailbox: ZynqMP IPI mailbox controller")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/zynqmp-ipi-mailbox.c