From: Axel Lin Date: Tue, 25 May 2010 06:49:51 +0000 (+0800) Subject: mfd: Fix memory leak in ab3100_otp_probe X-Git-Tag: v2.6.36-rc1~59^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d281b80c46da8bae806c4ef5682187f07e35389d;p=pandora-kernel.git mfd: Fix memory leak in ab3100_otp_probe In current implementation, there is a memory leak if ab3100_otp_read fail. And in the case of ab3100_otp_init_debugfs fail, it does not properly remove sysfs entries. This patch properly handle above failure cases. Signed-off-by: Axel Lin Acked-by: Linus Walleij Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed