ASoC: dapm - Fix check for codec context in dapm_power_widgets().
authorLiam Girdwood <lrg@ti.com>
Mon, 16 Jan 2012 15:23:31 +0000 (15:23 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 16 Jan 2012 15:49:09 +0000 (15:49 +0000)
commite7c80e2a8b403c10d805f48596efac741cce754d
treedf84341aaf1fe912449a9f85ff8a731b34225360
parentf7cb8a4be1cb46b03ccf517d505b3474c810853d
ASoC: dapm - Fix check for codec context in dapm_power_widgets().

Fixes a NULL pointer dereference in dapm_power_widgets() if the dapm context
has no codec.

Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c