Skip to content
Commit e80bba4b authored by Stefan Hajnoczi's avatar Stefan Hajnoczi Committed by Len Brown
Browse files

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: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 9c921c22
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment