Messages in this thread | | | Subject | Re: [PATCH] mmap + wrapping around to 0 | Date | Thu, 8 Nov 2001 18:00:37 +0000 (GMT) | From | Alan Cox <> |
| |
> in the inline function do_mmap(), change > if ((offset + PAGE_ALIGN(len)) < offset) > to > if ((offset + PAGE_ALIGN(len)-1) < offset)
Shouldnt that be
PAGE_ALIGN(len-1)
so you compute the page of the last byte ? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |