diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-25 07:00:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-25 07:00:12 +0000 |
commit | 992476b7d9f0a9b6eab927083f66d8d752498360 (patch) | |
tree | c79e2abbd7eb2b0ce77dd81118d81e19cba26ea3 /sys/dev/acpi | |
parent | 8788eaaf09da424d40149746901dface1b0d921f (diff) |
sizes for simple free() calls
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpimadt.c | 4 | ||||
-rw-r--r-- | sys/dev/acpi/atk0110.c | 4 |
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, |