Re: mmap from 0xFFFF0000 -> 0xFFFFFFFF does not work, why?!

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Wed, 12 May 1999 04:23:20 +0200


David Howells wrote:
> Try applying the attached patch.
> - if (!size || size > phys_addr + size)
> + if (!size || (size != ~phys_addr+1 && size > phys_addr + size))

I prefer:
- if (!size || size > phys_addr + size)
+ if (!size || size > phys_addr + size - 1)

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/