From: Stefan Hajnoczi Date: Tue, 12 Jul 2011 08:03:28 +0000 (+0100) Subject: ACPI / Battery: avoid acpi_battery_add() use-after-free X-Git-Tag: v3.1-rc1~80^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e80bba4b5108c6479379740201b0a5d9da5ffbac;p=pandora-kernel.git ACPI / Battery: avoid acpi_battery_add() use-after-free When acpi_battery_add_fs() fails the error handling code does not clean up completely. Moreover, it does not return resulting in a use-after-free. Signed-off-by: Stefan Hajnoczi Signed-off-by: Len Brown --- Reading git-diff-tree failed