Re: [PATCH] mmap + wrapping around to 0

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Nov 08 2001 - 13:00:37 EST


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



This archive was generated by hypermail 2b29 : Thu Nov 15 2001 - 21:00:19 EST