linux/drivers/soundwire
Pierre-Louis Bossart f5c6ebd514 soundwire: intel: fix memory leak with devm_kasprintf
[ Upstream commit bf6d6e68d2 ]

The dais are allocated with devm_kcalloc() but their name isn't
resourced managed and never freed. Fix by also using devm_ for the dai
names as well.

Fixes: c46302ec55 ('soundwire: intel: Add audio DAI ops')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200617163536.17401-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-07-22 09:33:00 +02:00
..
Kconfig soundwire: depend on ACPI || OF 2019-10-15 16:15:58 +05:30
Makefile soundwire updates for v5.4-rc1 2019-09-22 10:52:23 -07:00
bus.c soundwire: core: add device tree support for slave devices 2019-09-04 13:12:31 +05:30
bus.h soundwire: core: add device tree support for slave devices 2019-09-04 13:12:31 +05:30
bus_type.c
cadence_master.c soundwire updates for v5.4-rc1 2019-09-22 10:52:23 -07:00
cadence_master.h
debugfs.c
intel.c soundwire: intel: fix memory leak with devm_kasprintf 2020-07-22 09:33:00 +02:00
intel.h
intel_init.c
mipi_disco.c
slave.c soundwire: slave: don't init debugfs on device registration error 2020-06-24 17:50:23 +02:00
stream.c soundwire: stream: make stream name a const pointer 2019-09-04 14:57:28 +05:30