commit | bc39fbcf9c782970263bdc5b428e4a755db16efb | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Wed Apr 19 14:02:09 2017 +0200 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Apr 19 22:53:35 2017 +0200 |
tree | e2af4c79990e6d1d3e80dee995598f196f00d5d4 | |
parent | 8661423eea1a1b58417014716e3f1ba286072379 [diff] |
ACPI / battery: Fix acpi_battery_exit on acpi_battery_init_async errors The acpi_lock_battery_dir() / acpi_bus_register_driver() calls in acpi_battery_init_async() may fail. Check that they succeeded before undoing them. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>