]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: hdac_hdmi: Fix possible NULL pointer dereference
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Tue, 7 Nov 2017 10:46:25 +0000 (16:16 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2017 18:58:24 +0000 (18:58 +0000)
commit107b74b9c7b9b773d83e01aaa843e994ef6184ad
treecbae0061a34ec9cd3f28d6a8ca4b4470e8d06c3a
parent618740a339078579bfb8a035bebfff37228e0342
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 <subhransu.s.prusty@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c