]> err.no Git - linux-2.6/commitdiff
ACPI: fix kfree in i2c_ec error path
authorJean Delvare <khali@linux-fr.org>
Fri, 11 Aug 2006 06:30:31 +0000 (08:30 +0200)
committerLen 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

index 84239d51dc0ca472bf4e01433dcc7498e037753b..6809c283ec5865ed7183570dbe5814fa7e9bf5a4 100644 (file)
@@ -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;
        }