From: Bob Moore <robert.moore@xxxxxxxxx> Eliminates warnings only seen when acpiexec exits. Signed-off-by: Bob Moore <robert.moore@xxxxxxxxx> Signed-off-by: Erik Schmauss <erik.schmauss@xxxxxxxxx> --- drivers/acpi/acpica/dsfield.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpica/dsfield.c b/drivers/acpi/acpica/dsfield.c index 5581300927de..30fe89545d6a 100644 --- a/drivers/acpi/acpica/dsfield.c +++ b/drivers/acpi/acpica/dsfield.c @@ -417,10 +417,9 @@ acpi_ds_get_field_names(struct acpi_create_field_info *info, acpi_ns_get_attached_object (info->field_node), &result_desc); - ACPI_FREE(name_path); - acpi_ut_remove_reference - (obj_desc); } + acpi_ut_remove_reference(obj_desc); + ACPI_FREE(name_path); #endif } } -- 2.17.1