Skip to content

Commit dba7d9d

Browse files
bardliaovinodkoul
authored andcommitted
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 <[email protected]> Reviewed-by: Péter Ujfalusi <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 06f77ff commit dba7d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soundwire/stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ static int _sdw_prepare_stream(struct sdw_stream_runtime *stream,
15101510
if (ret < 0) {
15111511
dev_err(bus->dev, "Prepare port(s) failed ret = %d\n",
15121512
ret);
1513-
return ret;
1513+
goto restore_params;
15141514
}
15151515
}
15161516

0 commit comments

Comments
 (0)