summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2021-05-19 16:16:37 +0200
committerPhilipp Zabel <p.zabel@pengutronix.de>2021-06-07 11:26:31 +0200
commit91105ed604e4ea7075a35a1ef8bc1782d347290e (patch)
treec5f4ad4ddc664a3ad4aafa7295717486dd10a9b5 /drivers/dma-buf
parentreset: lantiq: use devm_reset_controller_register() (diff)
downloadlinux-91105ed604e4ea7075a35a1ef8bc1782d347290e.tar.xz
linux-91105ed604e4ea7075a35a1ef8bc1782d347290e.zip
reset: mchp: sparx5: fix return value check in mchp_sparx5_map_io()
In case of error, the function devm_platform_get_and_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 453ed4283beb ("reset: mchp: sparx5: add switch reset driver") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Link: https://lore.kernel.org/r/20210519141638.3052456-1-weiyongjun1@huawei.com Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/dma-buf')
0 files changed, 0 insertions, 0 deletions