aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/executer/exnames.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/executer/exnames.c')
-rw-r--r--drivers/acpi/executer/exnames.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/executer/exnames.c b/drivers/acpi/executer/exnames.c
index f9bc81c1b78d..80bbc20756a1 100644
--- a/drivers/acpi/executer/exnames.c
+++ b/drivers/acpi/executer/exnames.c
@@ -98,7 +98,7 @@ static char *acpi_ex_allocate_name_string(u32 prefix_count, u32 num_name_segs)
98 * Allocate a buffer for the name. 98 * Allocate a buffer for the name.
99 * This buffer must be deleted by the caller! 99 * This buffer must be deleted by the caller!
100 */ 100 */
101 name_string = ACPI_MEM_ALLOCATE(size_needed); 101 name_string = ACPI_ALLOCATE(size_needed);
102 if (!name_string) { 102 if (!name_string) {
103 ACPI_ERROR((AE_INFO, 103 ACPI_ERROR((AE_INFO,
104 "Could not allocate size %d", size_needed)); 104 "Could not allocate size %d", size_needed));
@@ -424,7 +424,7 @@ acpi_ex_get_name_string(acpi_object_type data_type,
424 424
425 if (ACPI_FAILURE(status)) { 425 if (ACPI_FAILURE(status)) {
426 if (name_string) { 426 if (name_string) {
427 ACPI_MEM_FREE(name_string); 427 ACPI_FREE(name_string);
428 } 428 }
429 return_ACPI_STATUS(status); 429 return_ACPI_STATUS(status);
430 } 430 }