Re: [PATCH] soundwire: bus: fix off-by-one when allocating slave IDs

Vinod Koul
2026-01-13T11:29:26Z

On Sat, 10 Jan 2026 12:19:58 -0800, Harshit Mogalapalli wrote:
> ida_alloc_max() interprets its max argument as inclusive.
>
> Using SDW_FW_MAX_DEVICES(16) therefore allows an ID of 16 to be
> allocated, but the IRQ domain created for the bus is sized for IDs
> 0-15. If 16 is returned, irq_create_mapping() fails and the driver
> ends up with an invalid IRQ mapping.
>
> [...]

Applied, thanks!

[1/1] soundwire: bus: fix off-by-one when allocating slave IDs
commit: 12d4fd9a657174496677cff2841315090f1c11fc

Best regards,
--
~Vinod