From: Michael Neuling <mikey@neuling.org>
To: Simon Horman <horms@verge.net.au>
Cc: kexec@lists.infradead.org
Subject: Re: [PATCH] fix valid_memory_range region merging
Date: Tue, 26 Feb 2008 10:29:28 +0100 [thread overview]
Message-ID: <23516.1204018168@neuling.org> (raw)
In-Reply-To: <20080226022933.GA12270@verge.net.au>
In message <20080226022933.GA12270@verge.net.au> you wrote:
> On Thu, Apr 26, 2007 at 04:50:34PM +1000, Michael Neuling wrote:
> > Check the next region we are including is type RANGE_RAM as well.
> >
> > Signed-off-by: Michael Neuling <mikey@neuling.org>
> > ---
> > I've not actually seen this cause a problem, but it looks wrong. We
> > should probably merge regions properly and solve this problem for real.
>
> Hi Michael,
>
> appologies for this blast-from-the-past. This mail somehow
> ended up filed in the wrong place and I chanced upon it just now.
>
> This fix does seem correct to me, though I haven't seen it cause
> any problems either. I'm happy to merge it (better late than never,
> right?) if you are still happy with it.
Sweet thanks, I'd well and truly forgotten about it. I think it was
just a random code cleanup, so if it still applies it should be fine to
merge.
Mikey
>
> >
> > kexec/kexec.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > Index: kexec-tools-testing/kexec/kexec.c
> > ===================================================================
> > --- kexec-tools-testing.orig/kexec/kexec.c
> > +++ kexec-tools-testing/kexec/kexec.c
> > @@ -96,7 +96,8 @@ int valid_memory_range(struct kexec_info
> > mstart = info->memory_range[i].start;
> > mend = info->memory_range[i].end;
> > if (i < info->memory_ranges - 1
> > - && mend == info->memory_range[i+1].start)
> > + && mend == info->memory_range[i+1].start
> > + && info->memory_range[i+1].type == RANGE_RAM)
> > mend = info->memory_range[i+1].end;
> >
> > /* Check to see if we are fully contained */
>
> --
> Horms
>
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2008-02-26 9:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-26 6:50 [PATCH] fix valid_memory_range region merging Michael Neuling
2007-04-26 7:17 ` Simon Horman
2008-02-26 2:29 ` Simon Horman
2008-02-26 9:29 ` Michael Neuling [this message]
2008-02-26 9:57 ` 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=23516.1204018168@neuling.org \
--to=mikey@neuling.org \
--cc=horms@verge.net.au \
--cc=kexec@lists.infradead.org \
/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.