soundwire: stream: Add missing clear of alloc_slave_rt
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 2 Jun 2023 10:11:36 +0000 (11:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:15:32 +0000 (11:15 +0200)
commit14e4f37e46e6d0a9997c22a3e73fc8b3de0bc6c1
tree570a871da80062511eb3e3b54d8f61e8a8345ed0
parente17734900a8810e32369c785d238baa19a0d4c15
soundwire: stream: Add missing clear of alloc_slave_rt

[ Upstream commit 58d95889f3c2064c6139ee94bb0e4d86e1ad4eab ]

The current path that skips allocating the slave runtime does not clear
the alloc_slave_rt flag, this is clearly incorrect. Add the missing
clear, so the runtime won't be erroneously cleaned up.

Fixes: f3016b891c8c ("soundwire: stream: sdw_stream_add_ functions can be called multiple times")
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230602101140.2040141-1-ckeepax@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soundwire/stream.c