mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
soundwire: Fix incorrect exit after configuring stream
[ Upstream commit 3fef1a2259 ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b1bafbe4ff
commit
ad9107d7e1
@@ -1112,7 +1112,7 @@ int sdw_stream_add_master(struct sdw_bus *bus,
|
||||
"Master runtime config failed for stream:%s",
|
||||
stream->name);
|
||||
ret = -ENOMEM;
|
||||
goto error;
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
ret = sdw_config_stream(bus->dev, stream, stream_config, false);
|
||||
@@ -1123,9 +1123,11 @@ int sdw_stream_add_master(struct sdw_bus *bus,
|
||||
if (ret)
|
||||
goto stream_error;
|
||||
|
||||
goto unlock;
|
||||
|
||||
stream_error:
|
||||
sdw_release_master_stream(stream);
|
||||
error:
|
||||
unlock:
|
||||
mutex_unlock(&bus->bus_lock);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user