ASoC: dapm: using freed pointer in dapm_kcontrol_add_widget()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 31 Jul 2013 08:52:44 +0000 (11:52 +0300)
committerMark Brown <broonie@linaro.org>
Wed, 31 Jul 2013 11:19:25 +0000 (12:19 +0100)
commit46a02c978fbc79de856d0fe7a8c1d4fc620796e0
tree4819c58be76a1c2b9ea19ef1aa0d9bed94ae5318
parent39eb5fd13dff8d3d04489fe3f59e0d22bf89041e
ASoC: dapm: using freed pointer in dapm_kcontrol_add_widget()

There is a typo here so we end up using the old freed pointer instead of
the newly allocated one.  (If the "n" is zero then the code works,
obviously).

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-dapm.c