Re: [PATCH] soundwire: stream: fix NULL pointer dereference for multi_link

From: Vinod Koul
Date: Tue Nov 28 2023 - 04:58:46 EST



On Fri, 24 Nov 2023 19:01:36 +0100, Krzysztof Kozlowski wrote:
> If bus is marked as multi_link, but number of masters in the stream is
> not higher than bus->hw_sync_min_links (bus->multi_link && m_rt_count >=
> bus->hw_sync_min_links), bank switching should not happen. The first
> part of do_bank_switch() code properly takes these conditions into
> account, but second part (sdw_ml_sync_bank_switch()) relies purely on
> bus->multi_link property. This is not balanced and leads to NULL
> pointer dereference:
>
> [...]

Applied, thanks!

[1/1] soundwire: stream: fix NULL pointer dereference for multi_link
commit: e199bf52ffda8f98f129728d57244a9cd9ad5623

Best regards,
--
~Vinod