On 3/28/07, Nick Piggin <[EMAIL PROTECTED]> wrote:
> +             ret = get_user_pages(tsk, tsk->mm, vma->vm_start,
> +                                  vma->vm_end-vma->vm_start, 1, 1, NULL,
> +                                  NULL);

get_user_pages length argument is in # of pages, rather than address range,
I think. vma_pages is what you want?

Yes.

On 3/28/07, Nick Piggin <[EMAIL PROTECTED]> wrote:
> +     up_write(&mm->mmap_sem);

I think you just need down_read of mmap_sem here?

Indeed. Thanks Nick.

                                 Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to