linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Xu Wang <vulab@iscas.ac.cn>
To: linux@armlinux.org.uk, michal.simek@xilinx.com,
	linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] ZYNQ: platsmp: fix ioremap return value
Date: Thu, 30 Apr 2020 15:12:15 +0800	[thread overview]
Message-ID: <20200430071215.13448-1-vulab@iscas.ac.cn> (raw)

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


                 reply	other threads:[~2020-04-30  7:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200430071215.13448-1-vulab@iscas.ac.cn \
    --to=vulab@iscas.ac.cn \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=michal.simek@xilinx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).