aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-09-04 11:02:43 +0300
committerWill Deacon <[email protected]>2024-09-04 16:42:49 +0100
commit086a3c40ebd02a4ac38121cf909326407b2883bc (patch)
treedb31d9b172ad37c353aa09cd6babdcfcb4ad54f9 /tools/testing/selftests/bpf/progs/test_autoload.c
parentdb184a1ced56dde6bbf8cc4d9b936c9f6a510e28 (diff)
iommu/tegra241-cmdqv: Fix ioremap() error handling in probe()
The ioremap() function doesn't return error pointers, it returns NULL on error so update the error handling. Also just return directly instead of calling iounmap() on the NULL pointer. Calling iounmap(NULL) doesn't cause a problem on ARM but on other architectures it can trigger a warning so it'a bad habbit. Fixes: 918eb5c856f6 ("iommu/arm-smmu-v3: Add in-kernel support for NVIDIA Tegra241 (Grace) CMDQV") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Nicolin Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions