kernel-fxtec-pro1x/sound/hda/ext
Amadeusz Sławiński 1023af0c06 ALSA: hdac: fix memory release for SST and SOF drivers
[ Upstream commit 6d647b736a6b1cbf2f8deab0e6a94c34a6ea9d60 ]

During the integration of HDaudio support, we changed the way in which
we get hdev in snd_hdac_ext_bus_device_init() to use one preallocated
with devm_kzalloc(), however it still left kfree(hdev) in
snd_hdac_ext_bus_device_exit(). It leads to oopses when trying to
rmmod and modprobe. Fix it, by just removing kfree call.

SOF also uses some of the snd_hdac_ functions for HDAudio support but
allocated the memory with kzalloc. A matching fix is provided
separately to align all users of the snd_hdac_ library.

Fixes: 6298542fa3 ("ALSA: hdac: remove memory allocation from snd_hdac_ext_bus_device_init")
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-10 09:53:36 +02:00
..
hdac_ext_bus.c ALSA: hdac: fix memory release for SST and SOF drivers 2019-07-10 09:53:36 +02:00
hdac_ext_controller.c ALSA: hdac: ext: add wait for codec to respond after link reset 2018-06-28 07:33:29 +02:00
hdac_ext_stream.c ALSA: hda: Fix several mismatch for register mask and value 2018-09-03 23:47:40 +02:00
Makefile ALSA: hdac_ext: add extended stream capabilities 2015-06-11 11:59:22 +02:00