Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 17ed5bef49f4 ("soundwire: add missing newlines in dynamic debug logs")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20250626060952.405996-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Bard Liao and committed by
Vinod Koul
dba7d9db 06f77ff9

+1 -1
+1 -1
drivers/soundwire/stream.c
··· 1510 1510 if (ret < 0) { 1511 1511 dev_err(bus->dev, "Prepare port(s) failed ret = %d\n", 1512 1512 ret); 1513 - return ret; 1513 + goto restore_params; 1514 1514 } 1515 1515 } 1516 1516