Re: [BK-2.4] [PATCH] Small do_mmap_pgoff correction

From: DervishD (
Date: Tue Dec 10 2002 - 17:28:42 EST

    Hi David :)

> How about something like:
> if (len == 0)
> return addr;
> len = PAGE_ALIGN(len);
> if (len > TASK_SIZE || len == 0)
> return -EINVAL;
> That should cover all cases and not make the TASK_SIZE assumption.

    Perfect :) If you want, I can make the patch and tell to Alan and
Linus. Anyway, I think you will better heared than me O:))

    Anyway, I'll take a look at a new macro (lets say PAGE_ALIGN_SIZE
or something as ugly as this ;)))

    Thanks for your correction.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Dec 15 2002 - 22:00:19 EST