summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/dsdt.c
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2017-10-12 07:24:47 +0000
committeranton <anton@cvs.openbsd.org>2017-10-12 07:24:47 +0000
commitc00064a01bacc927cff1e168e26824d1193ac1ec (patch)
tree397b0e63dc399300356218ecf755fe73b0906e52 /sys/dev/acpi/dsdt.c
parent9078f3f4c60f21f0230460d4c71a22c8f3b66e67 (diff)
Add missing size to free(); ok deraadt@ mpi@
Diffstat (limited to 'sys/dev/acpi/dsdt.c')
-rw-r--r--sys/dev/acpi/dsdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c
index 3b7eb0e0b2b..544c9cf7358 100644
--- a/sys/dev/acpi/dsdt.c
+++ b/sys/dev/acpi/dsdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsdt.c,v 1.234 2017/05/28 15:36:45 anton Exp $ */
+/* $OpenBSD: dsdt.c,v 1.235 2017/10/12 07:24:46 anton Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
*
@@ -452,7 +452,7 @@ _acpi_os_free(void *ptr, const char *fn, int line)
#endif
dnprintf(99, "free: %p %s:%d\n", sptr, fn, line);
- free(sptr, M_ACPI, 0);
+ free(sptr, M_ACPI, sizeof(*sptr) + sptr->size);
}
}