From: Axel Lin Date: Fri, 23 Jul 2010 05:53:43 +0000 (+0000) Subject: ASoC: ad1836: fix a memory leak if another ad1836 is registered X-Git-Tag: v2.6.36-rc1~493^2~1^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd3c8ac9cb653f7e3122bba9bc7beaad6062b7f4;p=pandora-kernel.git 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 Acked-by: Barry Song <21cnbao@gmail.com> Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed