aboutsummaryrefslogtreecommitdiff
path: root/sysutils/acpica-tools
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2014-09-19 20:59:51 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2014-09-19 20:59:51 +0000
commit0fe818c85fe0e59ccf7e035a132020ad9b091425 (patch)
tree24c49c0f1467128a8d6cdb4870f31287c885ec72 /sysutils/acpica-tools
parent63ba86356fda945e0ff55325abdc4c5dc89651f3 (diff)
Notes
Diffstat (limited to 'sysutils/acpica-tools')
-rw-r--r--sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c20
-rw-r--r--sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c19
2 files changed, 39 insertions, 0 deletions
diff --git a/sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c b/sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c
new file mode 100644
index 000000000000..e960f79f2e22
--- /dev/null
+++ b/sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c
@@ -0,0 +1,20 @@
+--- ../../source/compiler/dtcompile.c 2014-08-28 13:10:01.000000000 -0400
++++ ../../source/compiler/dtcompile.c 2014-09-19 16:32:31.000000000 -0400
+@@ -438,6 +438,7 @@
+ UINT8 *Buffer;
+ UINT8 *FlagBuffer = NULL;
+ UINT32 CurrentFlagByteOffset = 0;
++ char *String;
+ ACPI_STATUS Status;
+
+
+@@ -465,7 +466,8 @@
+
+ if (Length > 0)
+ {
+- Subtable->Buffer = ACPI_CAST_PTR (UINT8, UtStringCacheCalloc (Length));
++ String = UtStringCacheCalloc (Length);
++ Subtable->Buffer = ACPI_CAST_PTR (UINT8, String);
+ }
+ Subtable->Length = Length;
+ Subtable->TotalLength = Length;
diff --git a/sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c b/sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c
new file mode 100644
index 000000000000..31e2bfa6bf60
--- /dev/null
+++ b/sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c
@@ -0,0 +1,19 @@
+--- ../../source/compiler/dtsubtable.c 2014-08-28 13:10:01.000000000 -0400
++++ ../../source/compiler/dtsubtable.c 2014-09-19 16:47:23.000000000 -0400
+@@ -73,13 +73,15 @@
+ DT_SUBTABLE **RetSubtable)
+ {
+ DT_SUBTABLE *Subtable;
++ char *String;
+
+
+ Subtable = UtSubtableCacheCalloc ();
+
+ /* Create a new buffer for the subtable data */
+
+- Subtable->Buffer = ACPI_CAST_PTR (UINT8, UtStringCacheCalloc (Length));
++ String = UtStringCacheCalloc (Length);
++ Subtable->Buffer = ACPI_CAST_PTR (UINT8, String);
+ ACPI_MEMCPY (Subtable->Buffer, Buffer, Length);
+
+ Subtable->Length = Length;