android_kernel_motorola_sm6375/drivers/soundwire
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Rander Wang 870533403f soundwire: stream: fix memory leak in stream config error path
[ Upstream commit 48f17f96a81763c7c8bf5500460a359b9939359f ]

When stream config is failed, master runtime will release all
slave runtime in the slave_rt_list, but slave runtime is not
added to the list at this time. This patch frees slave runtime
in the config error path to fix the memory leak.

Fixes: 89e590535f ("soundwire: Add support for SoundWire stream management")
Signed-off-by: Rander Wang <[email protected]>
Reviewed-by: Keyon Jie <[email protected]>
Reviewed-by: Guennadi Liakhovetski <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2021-05-14 09:44:19 +02:00
..
bus.c soundwire: bus: Fix device found flag correctly 2021-05-14 09:44:19 +02:00
bus.h
bus_type.c
cadence_master.c soundwire: cadence: fix ACK/NAK handling 2021-03-04 10:26:36 +01:00
cadence_master.h
debugfs.c
intel.c
intel.h
intel_init.c
Kconfig
Makefile
mipi_disco.c
slave.c
stream.c soundwire: stream: fix memory leak in stream config error path 2021-05-14 09:44:19 +02:00