Re: [PATCH 6/6] irq: Potentially 'offset out of size' bug

From: Thomas Gleixner
Date: Fri Sep 10 2021 - 06:28:21 EST


On Fri, Sep 10 2021 at 03:26, Jiang Jiasheng wrote:
> The find_next_bit() use nr_irqs as size, and using it without
> any check might cause its returned value out of the size

Why exactly is this a problem? The return value has to be checked at the
call site anyway.

Thanks,

tglx