projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f73763
)
ACPI: fix kfree in i2c_ec error path
author
Jean Delvare
<khali@linux-fr.org>
Fri, 11 Aug 2006 06:30:31 +0000
(08:30 +0200)
committer
Len Brown
<len.brown@intel.com>
Fri, 11 Aug 2006 19:06:17 +0000
(15:06 -0400)
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/i2c_ec.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/i2c_ec.c
b/drivers/acpi/i2c_ec.c
index 84239d51dc0ca472bf4e01433dcc7498e037753b..6809c283ec5865ed7183570dbe5814fa7e9bf5a4 100644
(file)
--- a/
drivers/acpi/i2c_ec.c
+++ b/
drivers/acpi/i2c_ec.c
@@
-330,7
+330,7
@@
static int acpi_ec_hc_add(struct acpi_device *device)
status = acpi_evaluate_integer(ec_hc->handle, "_EC", NULL, &val);
if (ACPI_FAILURE(status)) {
ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Error obtaining _EC\n"));
- kfree(ec_hc
->smbus
);
+ kfree(ec_hc);
kfree(smbus);
return -EIO;
}