summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/acpi/acpimadt.c4
-rw-r--r--sys/dev/acpi/atk0110.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpi/acpimadt.c b/sys/dev/acpi/acpimadt.c
index f2247286f4e..eb4c3d98e3a 100644
--- a/sys/dev/acpi/acpimadt.c
+++ b/sys/dev/acpi/acpimadt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpimadt.c,v 1.32 2015/06/26 18:12:23 guenther Exp $ */
+/* $OpenBSD: acpimadt.c,v 1.33 2015/08/25 07:00:11 deraadt Exp $ */
/*
* Copyright (c) 2006 Mark Kettenis <kettenis@openbsd.org>
*
@@ -331,7 +331,7 @@ acpimadt_attach(struct device *parent, struct device *self, void *aux)
if (!acpimadt_cfg_intr(entry->madt_override.flags, &map->redir)) {
printf("%s: bogus override for pin %d\n",
self->dv_xname, pin);
- free(map, M_DEVBUF, 0);
+ free(map, M_DEVBUF, sizeof(*map));
break;
}
diff --git a/sys/dev/acpi/atk0110.c b/sys/dev/acpi/atk0110.c
index 35415e20d4e..62784fa8097 100644
--- a/sys/dev/acpi/atk0110.c
+++ b/sys/dev/acpi/atk0110.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atk0110.c,v 1.12 2014/12/19 07:42:49 deraadt Exp $ */
+/* $OpenBSD: atk0110.c,v 1.13 2015/08/25 07:00:11 deraadt Exp $ */
/*
* Copyright (c) 2009 Constantine A. Murenin <cnst+openbsd@bugmail.mojo.ru>
@@ -330,7 +330,7 @@ aibs_add_sensor(struct aibs_softc *sc, char *name)
printf("%s: aibs_add_sensor: %s: unknown sensor type %llx\n",
DEVNAME(sc), name, ri.v_package[0]->v_integer);
aml_freevalue(&ri);
- free(as, M_DEVBUF, 0);
+ free(as, M_DEVBUF, sizeof(*as));
return;
}
strlcpy(as->s.desc, ri.v_package[1]->v_string,