summaryrefslogtreecommitdiff
path: root/source/compiler/dtsubtable.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2014-09-11 21:38:09 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2014-09-11 21:38:09 +0000
commit754171ae60abbbd707ed8d449f07ef38f596bd22 (patch)
tree67d2b76905535d056ba6911186285d0325dc703f /source/compiler/dtsubtable.c
parente599b42ef5047e5546af949d87d2cfd2e17062b0 (diff)
Notes
Diffstat (limited to 'source/compiler/dtsubtable.c')
-rw-r--r--source/compiler/dtsubtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/compiler/dtsubtable.c b/source/compiler/dtsubtable.c
index 90cb067bd0ee..a87198d39a65 100644
--- a/source/compiler/dtsubtable.c
+++ b/source/compiler/dtsubtable.c
@@ -75,11 +75,11 @@ DtCreateSubtable (
DT_SUBTABLE *Subtable;
- Subtable = UtLocalCalloc (sizeof (DT_SUBTABLE));
+ Subtable = UtSubtableCacheCalloc ();
/* Create a new buffer for the subtable data */
- Subtable->Buffer = UtLocalCalloc (Length);
+ Subtable->Buffer = ACPI_CAST_PTR (UINT8, UtStringCacheCalloc (Length));
ACPI_MEMCPY (Subtable->Buffer, Buffer, Length);
Subtable->Length = Length;