Re: [PATCH] soundwire: Intel: test bus.bpt_stream before assigning it
From: Vinod Koul
Date: Mon Mar 09 2026 - 03:07:03 EST
On Mon, 26 Jan 2026 13:40:45 +0800, Bard Liao wrote:
> We only allow up to 1 bpt stream running on a SoundWire bus.
> bus.bpt_stream will be assigned when it is opened and will be set to
> NULL when it is closed. We do check bus->bpt_stream_refcount if the
> stream type is SDW_STREAM_BPT in sdw_master_rt_alloc(), but at that
> moment the bpt stream is allocated and set to bus.bpt_stream. It will
> lead to the original bus.bpt_stream be changed to the new and not used
> bpt stream. And it will be released and set to NULL when
> sdw_slave_bpt_stream_add() return error as it supposed to. Then the
> original stream will try to use the NULL bus.bpt_stream.
>
> [...]
Applied, thanks!
[1/1] soundwire: Intel: test bus.bpt_stream before assigning it
commit: b2c9f1d5a7eb50bcdda607afef1378e552bbb490
Best regards,
--
~Vinod