Skip to content

Commit

Permalink
ACPI: fix kfree in i2c_ec error path
Browse files Browse the repository at this point in the history
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Jean Delvare authored and Len Brown committed Aug 11, 2006
1 parent 9f73763 commit 0ee6a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/i2c_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0ee6a17

Please sign in to comment.