]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: hdac_hdmi: Set ops to NULL on remove
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Mon, 17 Jun 2019 11:36:42 +0000 (13:36 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 25 Jun 2019 14:33:25 +0000 (15:33 +0100)
commitbf03e1102faf333483455cb6e752c8934a1c12b2
tree61d97aebf69e7e97b8e3911fea19055bd2b21135
parent487b97ee514a30c57b2de152ad6dd36ec278f741
ASoC: Intel: hdac_hdmi: Set ops to NULL on remove

When we unload Skylake driver we may end up calling
hdac_component_master_unbind(), it uses acomp->audio_ops, which we set
in hdmi_codec_probe(), so we need to set it to NULL in hdmi_codec_remove(),
otherwise we will dereference no longer existing pointer.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c