diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-08-11 06:30:31 (GMT) |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-08-11 19:06:17 (GMT) |
commit | 0ee6a17389ceef65f1a86c38872fa98f08489022 (patch) | |
tree | 38ccea4e0e55cffb16f9dc93b391a790a5048257 /drivers/acpi | |
parent | 9f737633e6ee54fc174282d49b2559bd2208391d (diff) | |
download | linux-fsl-qoriq-0ee6a17389ceef65f1a86c38872fa98f08489022.tar.xz |
ACPI: fix kfree in i2c_ec error path
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/i2c_ec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/i2c_ec.c b/drivers/acpi/i2c_ec.c index 84239d5..6809c28 100644 --- 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; } |