“a6766ccdaf9cc80d565672516d429a562d1a732d”上不存在“drivers/net/wireless/iwlegacy/debug.c”
提交 3fef1a22 编写于 作者: S Shreyas NC 提交者: Vinod Koul

soundwire: Fix incorrect exit after configuring stream

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: NShreyas NC <shreyas.nc@intel.com>
Acked-by: NPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: NVinod Koul <vkoul@kernel.org>
上级 0aebe40b
...@@ -1112,7 +1112,7 @@ int sdw_stream_add_master(struct sdw_bus *bus, ...@@ -1112,7 +1112,7 @@ int sdw_stream_add_master(struct sdw_bus *bus,
"Master runtime config failed for stream:%s", "Master runtime config failed for stream:%s",
stream->name); stream->name);
ret = -ENOMEM; ret = -ENOMEM;
goto error; goto unlock;
} }
ret = sdw_config_stream(bus->dev, stream, stream_config, false); ret = sdw_config_stream(bus->dev, stream, stream_config, false);
...@@ -1123,9 +1123,11 @@ int sdw_stream_add_master(struct sdw_bus *bus, ...@@ -1123,9 +1123,11 @@ int sdw_stream_add_master(struct sdw_bus *bus,
if (ret) if (ret)
goto stream_error; goto stream_error;
goto unlock;
stream_error: stream_error:
sdw_release_master_stream(stream); sdw_release_master_stream(stream);
error: unlock:
mutex_unlock(&bus->bus_lock); mutex_unlock(&bus->bus_lock);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册