]> git.hungrycats.org Git - linux/commit
soundwire: Fix incorrect exit after configuring stream
authorShreyas NC <shreyas.nc@intel.com>
Fri, 27 Jul 2018 09:14:09 +0000 (14:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Oct 2018 07:47:04 +0000 (09:47 +0200)
commitad9107d7e1c77ef4676eebc64333dcdf155ae8b2
tree35580816247539332cbd6922a45244191922ec3c
parentb1bafbe4ff2d5e0ab21cfeef869d02f0cc4cef7a
soundwire: Fix incorrect exit after configuring stream

[ Upstream commit 3fef1a2259c556cce34df2791688cb3001f81c92 ]

In sdw_stream_add_master() after the Master ports are configured,
the stream is released incorrectly.

So, fix it by avoiding stream release after configuring the Master
for the stream.
While at it, rename the label appropriately.

Signed-off-by: Shreyas NC <shreyas.nc@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soundwire/stream.c