diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2018-07-08 10:32:54 +0200 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2018-07-11 20:47:37 +0800 |
commit | cff70654d8289311c427625020d9f74348ad856e (patch) | |
tree | d569199d117d021e947d85d41bab1436d3b7cd2b /arch/arm/mach-imx | |
parent | 08a213c24f3ec2dbd6e790582a6e7ff303f02fd4 (diff) | |
download | linux-cff70654d8289311c427625020d9f74348ad856e.tar.bz2 |
ARM: imx: flag failure of of_iomap
imx_set_aips is assuming that the address returned from of_iomap is
valid which it probably is in the normal case - as the call site
is void error propagation is not possible but never the less at least
a WARN_ON() seems warranted here.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: commit e57e4ab5fc2e ("ARM: i.MX: allow disabling supervisor protect via DT")
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index 32969f34486a..c6b1bf97a6c1 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -68,6 +68,7 @@ void __init imx_aips_allow_unprivileged_access( for_each_compatible_node(np, NULL, compat) { aips_base_addr = of_iomap(np, 0); + WARN_ON(!aips_base_addr); imx_set_aips(aips_base_addr); } } |