ALSA: hda - hdmi get jack from hda_jack_tbl when not dyn_pcm_assign
authorLibin Yang <libin.yang@linux.intel.com>
Fri, 19 Feb 2016 07:42:06 +0000 (15:42 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 19 Feb 2016 08:06:39 +0000 (09:06 +0100)
commit3184270ec188a70df555ab08bca70c0e61704205
tree3699aff4a9620c4e1ee5a771bbb0986edb71882e
parentea7900536775d4bfa0ea83ed677b6a96e29859b5
ALSA: hda - hdmi get jack from hda_jack_tbl when not dyn_pcm_assign

On Intel platform, if !dyn_pcm_assign, spec->pcm_rec[].jack is not
NULL even after snd_hda_jack_tbl_clear() is called to free snd_jack.
This may cause access invalid memory when calling snd_jack_report.

Fixes: 25e4abb33df3 ('ALSA: hda - hdmi jack created based on pcm')
Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c