projects/linux·commit 56bc8a18

Merge tag 'soundwire-6.19-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire

56bc8a18 · Linus Torvalds <[email protected]> · 2026-01-18 12:29:12 -08:00

Pull soundwire fix from Vinod Koul:

 - Single off-by-one fix for allocating slave id

* tag 'soundwire-6.19-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire:
  soundwire: bus: fix off-by-one when allocating slave IDs
Commit
56bc8a18aa94f1ff2cf18e843b1947edb169dda2
Parents
27983960 · 12d4fd9a

Merge commit. Changes below are compared with the first parent: 27983960.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/soundwire/bus_type.cmodified+1−1View file

drivers/soundwire/bus_type.c

View file
diff --git a/drivers/soundwire/bus_type.c b/drivers/soundwire/bus_type.c
index 91e70cb..5c67c13 100644
--- a/drivers/soundwire/bus_type.c
+++ b/drivers/soundwire/bus_type.c
@@ -105,7 +105,7 @@ static int sdw_drv_probe(struct device *dev)
if (ret)
return ret;
- ret = ida_alloc_max(&slave->bus->slave_ida, SDW_FW_MAX_DEVICES, GFP_KERNEL);
+ ret = ida_alloc_max(&slave->bus->slave_ida, SDW_FW_MAX_DEVICES - 1, GFP_KERNEL);
if (ret < 0) {
dev_err(dev, "Failed to allocated ID: %d\n", ret);
return ret;