Hi Krzysztof,

> +     if (max_segment < PAGE_SIZE)
> +             return -EINVAL;

should we also check here whether max_segment is page-aligned? I
think the loop coming later assumes that. If max_segment is not
aligned nr_pages can be == 0, right?

Andi

Reply via email to