Skip to content

Commit 33e8c45

Browse files
committed
soundwire: stream: restore params when prepare ports fail
The bus->params should be restored if the stream is failed to prepare. The issue exists since beginning. The Fixes tag just indicates the first commit that the commit can be applied to. Fixes: 17ed5be ("soundwire: add missing newlines in dynamic debug logs") Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent dc4c99a commit 33e8c45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soundwire/stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ static int _sdw_prepare_stream(struct sdw_stream_runtime *stream,
15201520
if (ret < 0) {
15211521
dev_err(bus->dev, "Prepare port(s) failed ret = %d\n",
15221522
ret);
1523-
return ret;
1523+
goto restore_params;
15241524
}
15251525
}
15261526

0 commit comments

Comments
 (0)