ASoC: dapm: Fix kcontrol path list corruption
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 1 Aug 2013 12:08:07 +0000 (14:08 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 1 Aug 2013 18:24:28 +0000 (19:24 +0100)
commit2c75bdf3fd935119cf8681ac0df2b4a5edd5167d
tree9cd5658af2854651f974ad35895f54c1addd9191
parent9356e9d51c80114fce2d7d8be99bce1d7e19d063
ASoC: dapm: Fix kcontrol path list corruption

When calling krealloc for the kcontrol data the items in the path list that
point back to the head of the list will now point to freed memory, which causes
the list to become corrupted. To fix this, instead of resizing the whole data
struct, only resize the widget list.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-dapm.c