summaryrefslogtreecommitdiff
path: root/source/components/utilities/utalloc.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2013-12-19 05:51:01 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2013-12-19 05:51:01 +0000
commit86e94f4ac956e0aed23de30c7a458d215f54749a (patch)
tree7fcfdcc62c3319ffd669b18b080d40c9c5897210 /source/components/utilities/utalloc.c
parentde06c6b7e0851b337ee530b0ab8818f4216b06b2 (diff)
Notes
Diffstat (limited to 'source/components/utilities/utalloc.c')
-rw-r--r--source/components/utilities/utalloc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/components/utilities/utalloc.c b/source/components/utilities/utalloc.c
index 51eee9719d66..be7eaf07be8b 100644
--- a/source/components/utilities/utalloc.c
+++ b/source/components/utilities/utalloc.c
@@ -324,9 +324,13 @@ AcpiUtInitializeBuffer (
return (AE_BUFFER_OVERFLOW);
case ACPI_ALLOCATE_BUFFER:
-
- /* Allocate a new buffer */
-
+ /*
+ * Allocate a new buffer. We directectly call AcpiOsAllocate here to
+ * purposefully bypass the (optionally enabled) internal allocation
+ * tracking mechanism since we only want to track internal
+ * allocations. Note: The caller should use AcpiOsFree to free this
+ * buffer created via ACPI_ALLOCATE_BUFFER.
+ */
Buffer->Pointer = AcpiOsAllocate (RequiredLength);
break;