Re: [PATCH 0/2] soundwire: qcom: Fix port handling bugs

From: Vinod Koul

Date: Thu Jul 02 2026 - 14:02:21 EST



On Wed, 01 Jul 2026 20:30:04 +0100, Srinivas Kandagatla wrote:
> This series fixes two bugs in the Qualcomm SoundWire controller driver
> spotted by sashiko-bot:
>
> 1. An off-by-one in the port exhaustion check: find_first_zero_bit()
> returns the size argument (not size+1) when no free bit is found, so
> the existing `pn > maxport` guard is never true. The driver would
> silently assign an out-of-range port instead of returning -EBUSY.
>
> [...]

Applied, thanks!

[1/2] soundwire: qcom: Fix port exhaustion check in stream_alloc_ports
commit: 6ccec91c3535b07310e12d32fe9c67ff8d31d965
[2/2] soundwire: qcom: Allocate sruntime array dynamically
commit: 4f9df964ba4507958df39612103d0eb318b1e3e5

Best regards,
--
~Vinod