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)
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>

No differences found