diff options
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index 6f5e395c78af..2c626e81a289 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
@@ -466,7 +466,7 @@ static acpi_status is_memory_device(acpi_handle handle) | |||
466 | 466 | ||
467 | info = buffer.pointer; | 467 | info = buffer.pointer; |
468 | if (!(info->valid & ACPI_VALID_HID)) { | 468 | if (!(info->valid & ACPI_VALID_HID)) { |
469 | acpi_os_free(buffer.pointer); | 469 | kfree(buffer.pointer); |
470 | return AE_ERROR; | 470 | return AE_ERROR; |
471 | } | 471 | } |
472 | 472 | ||
@@ -475,7 +475,7 @@ static acpi_status is_memory_device(acpi_handle handle) | |||
475 | (strcmp(hardware_id, ACPI_MEMORY_DEVICE_HID))) | 475 | (strcmp(hardware_id, ACPI_MEMORY_DEVICE_HID))) |
476 | status = AE_ERROR; | 476 | status = AE_ERROR; |
477 | 477 | ||
478 | acpi_os_free(buffer.pointer); | 478 | kfree(buffer.pointer); |
479 | return status; | 479 | return status; |
480 | } | 480 | } |
481 | 481 | ||