Re: [PATCH] x86_64: Fix off by one in e820_mapped

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
> ---
> 
>  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; 
>  	} 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux