All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ZYNQ: platsmp: fix ioremap return value
@ 2020-04-30  7:12 ` Xu Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Xu Wang @ 2020-04-30  7:12 UTC (permalink / raw)
  To: linux, michal.simek, linux-arm-kernel; +Cc: linux-kernel

In ioremap we should return -ENOMEM when it reports an
memory allocation failure.

Signed-off-by: Xu Wang <vulab@iscas.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ZYNQ: platsmp: fix ioremap return value
@ 2020-04-30  7:12 ` Xu Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Xu Wang @ 2020-04-30  7:12 UTC (permalink / raw)
  To: linux, michal.simek, linux-arm-kernel; +Cc: linux-kernel

In ioremap we should return -ENOMEM when it reports an
memory allocation failure.

Signed-off-by: Xu Wang <vulab@iscas.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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-30  7:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30  7:12 [PATCH] ZYNQ: platsmp: fix ioremap return value Xu Wang
2020-04-30  7:12 ` Xu Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.