linux/sound/hda
Amadeusz Sławiński 6d647b736a
ALSA: hdac: fix memory release for SST and SOF drivers
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>
2019-06-06 17:37:01 +01:00
..
ext ALSA: hdac: fix memory release for SST and SOF drivers 2019-06-06 17:37:01 +01:00
Kconfig ALSA: hda: Make audio component support more generic 2018-07-17 22:25:48 +02:00
Makefile ALSA: hda: Make audio component support more generic 2018-07-17 22:25:48 +02:00
array.c
hda_bus_type.c
hdac_bus.c ALSA: HDA: export process_unsol_events() 2018-12-19 18:07:18 +01:00
hdac_component.c i915/snd_hdac: I915 subcomponent for the snd_hdac 2019-02-08 16:58:59 +01:00
hdac_controller.c ALSA: hda: Fix mismatches for register mask and value in hdac controller 2019-01-09 10:28:44 +01:00
hdac_device.c ALSA: hda: Refactor display power management 2018-12-11 08:06:55 +01:00
hdac_i915.c Char/Misc driver patches for 5.1-rc1 2019-03-06 14:18:59 -08:00
hdac_regmap.c regmap: split up regmap_config.use_single_rw 2018-09-07 13:03:55 +01:00
hdac_stream.c ALSA: hda: Avoid NULL pointer dereference at snd_hdac_stream_start() 2019-03-13 11:23:59 +01:00
hdac_sysfs.c
hdmi_chmap.c
local.h
trace.c
trace.h