[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <176830376359.826049.1740927035022094922.b4-ty@kernel.org>
Date: Tue, 13 Jan 2026 16:59:23 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Bard Liao <yung-chuan.liao@...ux.intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@...ux.dev>,
Charles Keepax <ckeepax@...nsource.cirrus.com>, linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
Harshit Mogalapalli <harshit.m.mogalapalli@...cle.com>
Cc: dan.carpenter@...aro.org, kernel-janitors@...r.kernel.org,
error27@...il.com, kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] soundwire: bus: fix off-by-one when allocating slave
IDs
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
Powered by blists - more mailing lists