mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Andi Kleen <ak@suse.de>,
	linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] x86_64: Fix off by one in e820_mapped
Date: Wed, 3 Aug 2005 12:23:13 +0200	[thread overview]
Message-ID: <20050803102313.GP10895@wotan.suse.de> (raw)
In-Reply-To: <m14qad4f5n.fsf@ebiederm.dsl.xmission.com>

On Fri, Jul 29, 2005 at 12:53:56PM -0600, Eric W. Biederman wrote:
> 
> This allows a valid iommu placed immediately after memory
> to work, to be recognized as after the last byte of memory
> and not overlapping it.

Looks good thanks. I see Andrew has already queued it up.

-Andi

> 
> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
> ---
> 
>  arch/x86_64/kernel/e820.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> a0929b87b8d0d059a10eb3e61da3d679d64980e1
> diff --git a/arch/x86_64/kernel/e820.c b/arch/x86_64/kernel/e820.c
> --- a/arch/x86_64/kernel/e820.c
> +++ b/arch/x86_64/kernel/e820.c
> @@ -85,7 +85,7 @@ int __init e820_mapped(unsigned long sta
>  		struct e820entry *ei = &e820.map[i]; 
>  		if (type && ei->type != type) 
>  			continue;
> -		if (ei->addr >= end || ei->addr + ei->size < start) 
> +		if (ei->addr >= end || ei->addr + ei->size <= start) 
>  			continue; 
>  		return 1; 
>  	} 

      reply	other threads:[~2005-08-03 10:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-29 18:53 Eric W. Biederman
2005-08-03 10:23 ` Andi Kleen [this message]

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=20050803102313.GP10895@wotan.suse.de \
    --to=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=ebiederm@xmission.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®