ASoC: hdac_hdmi: Fix possible NULL pointer dereference
authorSubhransu S. Prusty <[email protected]>
Tue, 7 Nov 2017 10:46:25 +0000 (16:16 +0530)
committerMark Brown <[email protected]>
Wed, 8 Nov 2017 18:58:24 +0000 (18:58 +0000)
commiteb50fa1739a63cc4b202b40a62d71055a2d7b80c
treecbae0061a34ec9cd3f28d6a8ca4b4470e8d06c3a
parent70e97a2d9c5266487dfec4cade28f8e587927f04
ASoC: hdac_hdmi: Fix possible NULL pointer dereference

Pointers hdac_hdmi_pcm and hda_device_id can be NULL, so add check for
valid pointer to avoid NULL pointer dereference.

Signed-off-by: Subhransu S. Prusty <[email protected]>
Signed-off-by: Guneshwor Singh <[email protected]>
Acked-By: Vinod Koul <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/hdac_hdmi.c