Skip to content

Commit e335bee

Browse files
Wang ShaoBorafaeljw
authored andcommitted
ACPI: pfr_update: use ACPI_FREE() to free acpi_object
acpi_evaluate_dsm_typed()/acpi_evaluate_dsm() should be coupled with ACPI_FREE() to free the ACPI memory, because we need to track the allocation of acpi_object when ACPI_DBG_TRACK_ALLOCATIONS enabled, so use ACPI_FREE() instead of kfree(). Fixes: 0db89fa ("ACPI: Introduce Platform Firmware Runtime Update device driver") Signed-off-by: Wang ShaoBo <[email protected]> Reviewed-by: Chen Yu <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 0f2aa7f commit e335bee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/acpi/pfr_update.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static int query_capability(struct pfru_update_cap_info *cap_hdr,
178178
ret = 0;
179179

180180
free_acpi_buffer:
181-
kfree(out_obj);
181+
ACPI_FREE(out_obj);
182182

183183
return ret;
184184
}
@@ -224,7 +224,7 @@ static int query_buffer(struct pfru_com_buf_info *info,
224224
ret = 0;
225225

226226
free_acpi_buffer:
227-
kfree(out_obj);
227+
ACPI_FREE(out_obj);
228228

229229
return ret;
230230
}
@@ -385,7 +385,7 @@ static int start_update(int action, struct pfru_device *pfru_dev)
385385
ret = 0;
386386

387387
free_acpi_buffer:
388-
kfree(out_obj);
388+
ACPI_FREE(out_obj);
389389

390390
return ret;
391391
}

0 commit comments

Comments
 (0)