From: Axel Lin Date: Fri, 23 Jul 2010 05:53:45 +0000 (+0000) Subject: ASoC: da7210: fix a memory leak if failed to initialise da7210 audio codec X-Git-Tag: v2.6.36-rc1~493^2~1^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=085efd28b65582fac459359672421a1c479e7db1;p=pandora-kernel.git ASoC: da7210: fix a memory leak if failed to initialise da7210 audio codec da7210 should be kfreed if da7210_init() return error. This patch also fixes the error handing in the case of snd_soc_register_dai() fail by adding snd_soc_unregister_codec() in error path. Signed-off-by: Axel Lin Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed