Re: [PATCH] block: Fix minor range check in device_add_disk()

From: Tetsuo Handa
Date: Wed Oct 25 2023 - 06:07:13 EST


On 2023/10/25 17:46, Zhong Jinghua wrote:
> Checks added in patch:
> commit e338924bd05d ("block: check minor range in device_add_disk()")
> ignore the problem of first_minore < 0 and disk->minors < 0.

What is the problem of first_minor < 0 or disk->minors < 0 ?
Are negative values legal/illegal ?