diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2018-02-20 16:19:05 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-20 14:24:38 +0000 |
commit | 5e558f8afaec8957932b1dbe5aeff800f9fc6957 (patch) | |
tree | 8d40ed2e94e5cf5ff52c3633200133b34ae2f2a8 /sound/soc/codecs/sirf-audio-codec.h | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
download | linux-5e558f8afaec8957932b1dbe5aeff800f9fc6957.tar.gz linux-5e558f8afaec8957932b1dbe5aeff800f9fc6957.tar.bz2 linux-5e558f8afaec8957932b1dbe5aeff800f9fc6957.zip |
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.
Commit cd6111b26280a ("ASoC: hdmi-codec: add channel mapping control")
should not have added the kfree(hcp->chmap_info); to the hdmi_codec_remove
function.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Jyri Sarha <jsarha@ti.com>
Tested-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/sirf-audio-codec.h')
0 files changed, 0 insertions, 0 deletions