linux-stable/drivers/soundwire
Pierre-Louis Bossart f00c049ede soundwire: intel: fix error handling on dai registration issues
[ Upstream commit c6867cda90 ]

The call to intel_register_dai() may fail because of memory allocation
issues or problems reported by the ASoC core. In all cases, when a
error is thrown the component is not registered, it's invalid to
unregister it.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220919175721.354679-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 13:25:53 +02:00
..
bus.c
bus.h
bus_type.c soundwire: bus_type: fix remove and shutdown support 2022-08-21 15:15:56 +02:00
cadence_master.c soundwire: cadence: Don't overwrite msg->buf during write commands 2022-10-26 13:25:53 +02:00
cadence_master.h
debugfs.c soundwire: debugfs: use controller id and link_id for debugfs 2021-11-18 14:04:16 +01:00
generic_bandwidth_allocation.c
intel.c soundwire: intel: fix error handling on dai registration issues 2022-10-26 13:25:53 +02:00
intel.h
intel_init.c
Kconfig
Makefile
master.c
mipi_disco.c
qcom.c
slave.c
stream.c
sysfs_local.h
sysfs_slave.c
sysfs_slave_dpn.c