diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2018-02-20 15:30:10 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-20 17:30:57 +0300 |
commit | f1c680f5ef7ad3211bf1ae5630bd6a8219534e3c (patch) | |
tree | 84d2315d3072e361180e6158748cc8db11805487 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d20aa608f4244868139b0a25a8afc89c5a6bf422 (diff) | |
download | linux-f1c680f5ef7ad3211bf1ae5630bd6a8219534e3c.tar.xz |
ASoC: hdmi-codec: Fix module unloading caused kernel crash
The hcp->chmap_info must not be freed up in the hdmi_codec_remove()
function as it leads to kernel crash due ALSA core's
pcm_chmap_ctl_private_free() is trying to free it up again when the card
destroyed via snd_card_free.
Since the driver was converted to devm_snd_soc_register_component() the
whole platform_device.remove can be removed.
Commit cd6111b26280a ("ASoC: hdmi-codec: add channel mapping control")
should not have added the kfree(hcp->chmap_info); to the hdmi_codec_remove
function.
[Separate verison of the fix for -next -- broonie]
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions