summaryrefslogtreecommitdiff
path: root/rust/kernel/ptr/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorChen Ni <nichen@iscas.ac.cn>2026-03-26 17:08:56 +0800
committerWill Deacon <will@kernel.org>2026-03-26 15:23:38 +0000
commitd49802b6617b96f55d4b61fed81f4cc43858ed3f (patch)
tree62423c9c4b903adb75cc632b08e609a3d3b88865 /rust/kernel/ptr/git@git.tavy.me:linux.git
parent2f89b7f78c50ca973ca035ceb30426f78d9e0996 (diff)
perf/arm-cmn: Fix incorrect error check for devm_ioremap()
Check devm_ioremap() return value for NULL instead of ERR_PTR and return -ENOMEM on failure. devm_ioremap() never returns ERR_PTR, using IS_ERR() skips the error path and may cause a NULL pointer dereference. Fixes: 5394396ff548 ("perf/arm-cmn: Stop claiming entire iomem region") Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'rust/kernel/ptr/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions