diff options
author | 2022-09-24 11:21:27 +0800 | |
---|---|---|
committer | 2022-10-07 14:47:38 +0100 | |
commit | ad0112f2d54cafee839e2ee99ec0b5fb9ce5c4b8 (patch) | |
tree | 47f9961a64aa6b83b55d59c7db7408f393c6a3aa /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | arm64: errata: Add Cortex-A55 to the repeat tlbi list (diff) | |
download | wireguard-linux-ad0112f2d54cafee839e2ee99ec0b5fb9ce5c4b8.tar.xz wireguard-linux-ad0112f2d54cafee839e2ee99ec0b5fb9ce5c4b8.zip |
drivers/perf: fix return value check in ali_drw_pmu_probe()
In case of error, devm_ioremap_resource() returns ERR_PTR(),
and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().
Fixes: cf7b61073e45 ("drivers/perf: add DDR Sub-System Driveway PMU driver for Yitian 710 SoC")
Signed-off-by: Sun Ke <sunke32@huawei.com>
Acked-by: Will Deacon <will@kernel.org>
Reviewed-by: Shuai Xue <xueshuai@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220924032127.313156-1-sunke32@huawei.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions