diff options
| author | 2011-07-12 09:03:28 +0100 | |
|---|---|---|
| committer | 2011-07-16 18:54:59 -0400 | |
| commit | e80bba4b5108c6479379740201b0a5d9da5ffbac (patch) | |
| tree | 34634eebb8dc8f17e8654ffff0d5b6b2fb3a370b /lib/fault-inject.c | |
| parent | ACPI / Battery: Resolve the race condition in the sysfs_remove_battery() (diff) | |
| download | wireguard-linux-e80bba4b5108c6479379740201b0a5d9da5ffbac.tar.xz wireguard-linux-e80bba4b5108c6479379740201b0a5d9da5ffbac.zip | |
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>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
