]> www.infradead.org Git - users/willy/xarray.git/commit
perf: arm-ni: Fix an NULL vs IS_ERR() bug
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 11 Sep 2024 07:39:59 +0000 (10:39 +0300)
committerWill Deacon <will@kernel.org>
Thu, 12 Sep 2024 11:49:33 +0000 (12:49 +0100)
commit2e091a805febb9a91cc7de2735d8d4ef0e640241
tree90703f02bc3967a34f55ca34c0ca6db5202639eb
parent5967a19f1c2ffb530f5d4589ddc4b4afbb6c7bd4
perf: arm-ni: Fix an NULL vs IS_ERR() bug

The devm_ioremap() function never returns error pointers, it returns a
NULL pointer if there is an error.

Fixes: 4d5a7680f2b4 ("perf: Add driver for Arm NI-700 interconnect PMU")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/04d6ccc3-6d31-4f0f-ab0f-7a88342cc09a@stanley.mountain
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-ni.c