]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: core: Fix obscure leak of runtime array
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Mar 2012 20:18:49 +0000 (20:18 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 15 Mar 2012 14:28:25 +0000 (14:28 +0000)
commit181a68927b9e6ff7c0ea093c2f056eeb0552a911
tree5e897ae095713dea4085908dd5c9f3519e3e9c51
parent4eb98f45b77b00868dcebe4a0f00d2a36afd88c2
ASoC: core: Fix obscure leak of runtime array

We're currently not freeing card->rtd in cases where the card is
unregistered before being instantiated - convert it to devm_kzalloc() to
make sure that happens.

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