Hi Krzysztof,

On Tue, Oct 06, 2026 at 09:58:40AM +0000, Krzysztof Karas wrote:
> There is nothing preventing user of shmem_sg_alloc_table() from
> passing max_segment smaller than PAGE_SIZE, which would result
> in nr_pages = max_segment / PAGE_SIZE == 0 and cause a
> non-terminating loop.
> Also, ensure that this value io page-aligned.
> 
> Suggested-by: Janusz Krzysztofik <[email protected]>
> Suggested-by: Andi Shyti <[email protected]>
> Assisted-by: LLM
> Signed-off-by: Krzysztof Karas <[email protected]>

Reviewed-by: Andi Shyti <[email protected]>

Thanks,
Andi

Reply via email to