Re: mmap() doesn't like certain value...

Denis Vlasenko
2002-05-10T14:41:11Z

On 10 May 2002 06:39, DervishD wrote:
> > if ((len = PAGE_ALIGN(len)) == 0)
> > return addr;
>
> This is the problem.
>
> > if (len > TASK_SIZE)
> > return -EINVAL;
>
> And is corrected just by inverting the two quoted code snips :)

You are right

> I'll give a try to the inversion, that should work. I have
> written a small stress program for mmap, so in a few hours the patch
> will be ready. Must I post it here or send it directly to Marcello?

Post here and to Marcelo. BTW, is 2.5 affected?
--
vda