ASoC: Intel: Skylake: Fix potential null pointer dereference
author[email protected] <[email protected]>
Fri, 28 Jul 2017 10:42:16 +0000 (16:12 +0530)
committerMark Brown <[email protected]>
Tue, 1 Aug 2017 12:34:09 +0000 (13:34 +0100)
commit10a5439f0e4db0b1c4c2a2f6c916d6501cfeae50
tree0b263c70af557d0b80640260783fb0e05f5791cd
parent693c0fb26a312d7cc866b1e9195187789b69e7e6
ASoC: Intel: Skylake: Fix potential null pointer dereference

Check if the next sink is not null to avoid potential null pointer
dereference in skl_tplg_bind_sinks().

Signed-off-by: Guneshwor Singh <[email protected]>
Acked-By: Vinod Koul <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/intel/skylake/skl-topology.c