28 Nov
2023
28 Nov
'23
10:58 a.m.
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