[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200430071215.13448-1-vulab@iscas.ac.cn>
Date: Thu, 30 Apr 2020 15:12:15 +0800
From: Xu Wang <vulab@...as.ac.cn>
To: linux@...linux.org.uk, michal.simek@...inx.com,
linux-arm-kernel@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] ZYNQ: platsmp: fix ioremap return value
In ioremap we should return -ENOMEM when it reports an
memory allocation failure.
Signed-off-by: Xu Wang <vulab@...as.ac.cn>
---
arch/arm/mach-zynq/platsmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-zynq/platsmp.c b/arch/arm/mach-zynq/platsmp.c
index 68ec303fa278..308f74f9b4f9 100644
--- a/arch/arm/mach-zynq/platsmp.c
+++ b/arch/arm/mach-zynq/platsmp.c
@@ -47,7 +47,7 @@ int zynq_cpun_start(u32 address, int cpu)
zero = ioremap(0, trampoline_code_size);
if (!zero) {
pr_warn("BOOTUP jump vectors not accessible\n");
- return -1;
+ return -ENOMEM;
}
} else {
zero = (__force u8 __iomem *)PAGE_OFFSET;
--
2.17.1
Powered by blists - more mailing lists