]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ad1836: fix a memory leak if another ad1836 is registered
authorAxel Lin <axel.lin@gmail.com>
Fri, 23 Jul 2010 05:53:43 +0000 (05:53 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 Aug 2010 06:40:26 +0000 (07:40 +0100)
commit26354f3dacbae78852710ca711388fb9fafb4804
tree96bcb74e54147688758f0d0ad8690eadf763e022
parent4a99a741c32e0a2cb9a1a5899548b3c863454eb8
ASoC: ad1836: fix a memory leak if another ad1836 is registered

ad1836 is allocated in ad1836_spi_probe() but is not freed if ad1836_register()
return -EINVAL (if another ad1836 is registered).

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Barry Song <21cnbao@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ad1836.c