ASoC: Intel: Skylake: Fix a couple user after free bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Apr 2017 19:11:20 +0000 (22:11 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 21 Apr 2017 17:00:33 +0000 (18:00 +0100)
commit550b349af0f0e33fedb252aca8dc144299aca308
tree0ec67c4d491d0a5cc30f185559e5a506cb2574de
parente6a33532affd14c12688c0e9b2e773e8b2550f3b
ASoC: Intel: Skylake: Fix a couple user after free bugs

We need to use the _safe() version of list_for_each_entry() here because
of the kfree(modules).

Fixes: b8c722ddd548 ("ASoC: Intel: Skylake: Add support for deferred DSP module bind")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c
sound/soc/intel/skylake/skl-topology.c