From: Alban Bedel <alban.bedel@avionic-design.de>
To: kexec@lists.infradead.org
Cc: Nikolaus Schulz <nikolaus.schulz@avionic-design.de>,
horms@verge.net.au, Alban Bedel <alban.bedel@avionic-design.de>
Subject: [PATCH 2/3] zImage-arm: Fix a return value check that use the wrong variable
Date: Thu, 31 Mar 2016 17:30:59 +0200 [thread overview]
Message-ID: <1459438260-8205-2-git-send-email-alban.bedel@avionic-design.de> (raw)
In-Reply-To: <1459438260-8205-1-git-send-email-alban.bedel@avionic-design.de>
When looking for a hole to put the initrd in the error check used the
wrong variable.
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
---
kexec/arch/arm/kexec-zImage-arm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kexec/arch/arm/kexec-zImage-arm.c b/kexec/arch/arm/kexec-zImage-arm.c
index 78518fd..c436b83 100644
--- a/kexec/arch/arm/kexec-zImage-arm.c
+++ b/kexec/arch/arm/kexec-zImage-arm.c
@@ -530,7 +530,7 @@ int zImage_arm_load(int argc, char **argv, const char *buf, off_t len,
unsigned long initrd_base_new = locate_hole(info,
hole_size, page_size,
initrd_base, ULONG_MAX, INT_MAX);
- if (base == ULONG_MAX)
+ if (initrd_base_new == ULONG_MAX)
return -1;
initrd_base = initrd_base_new;
}
--
2.8.0
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2016-03-31 15:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-31 15:30 [PATCH 1/3] arm: properly handle a missing /chosen node in the DT Alban Bedel
2016-03-31 15:30 ` Alban Bedel [this message]
2016-03-31 15:31 ` [PATCH 3/3] zImage-arm: Add support for booting android images Alban Bedel
2016-04-05 6:33 ` [PATCH 1/3] arm: properly handle a missing /chosen node in the DT Simon Horman
2016-04-05 9:34 ` Nikolaus Schulz
2016-04-05 9:37 ` Nikolaus Schulz
2016-04-06 0:30 ` Simon Horman
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=1459438260-8205-2-git-send-email-alban.bedel@avionic-design.de \
--to=alban.bedel@avionic-design.de \
--cc=horms@verge.net.au \
--cc=kexec@lists.infradead.org \
--cc=nikolaus.schulz@avionic-design.de \
/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 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.