Re: [PATCH] mmap + wrapping around to 0

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 8 Nov 2001 18:00:37 +0000 (GMT)


> 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/