From: Axel Lin Date: Fri, 23 Jul 2010 05:53:53 +0000 (+0000) Subject: ASoC: wm8978: fix a memory leak if a wm8978_register fail X-Git-Tag: v2.6.36-rc1~493^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d484366beeab0cded9644083172151c5afacc503;p=pandora-kernel.git ASoC: wm8978: fix a memory leak if a wm8978_register fail There is a memory leak found if wm8978_register() fail. This patch moves the buffer allocate and release at the same level to prevent the memory leak. Signed-off-by: Axel Lin Reviewed-by: Guennadi Liakhovetski Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed