Stefan Hajnoczi e80bba4b51 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 <stefanha@linux.vnet.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2011-07-16 18:54:59 -04:00
..
2011-05-29 02:21:08 -04:00
2011-03-22 23:20:35 -04:00
2011-05-29 04:40:39 -04:00
2010-10-15 15:53:27 +02:00
2011-03-23 02:34:54 -04:00
2011-05-10 10:16:21 +02:00