diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-09-02 14:07:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-09-02 14:07:44 +0000 |
commit | 36c53e515bc006b43276e9b0dd1ac97496d76e73 (patch) | |
tree | 56ffabe2d6dbd3bfcdc8215b9bcb494368a4815a /sys/arch | |
parent | a9d37948206ac1bf1219b9cfb71335ad35a9d84c (diff) |
sizes for free()
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/alpha/interrupt.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/dev/shared_intr.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/eisa/eisa_machdep.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/alpha/alpha/interrupt.c b/sys/arch/alpha/alpha/interrupt.c index ae7f6134fbc..b56a4d431b0 100644 --- a/sys/arch/alpha/alpha/interrupt.c +++ b/sys/arch/alpha/alpha/interrupt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interrupt.c,v 1.35 2015/05/19 20:28:14 miod Exp $ */ +/* $OpenBSD: interrupt.c,v 1.36 2015/09/02 14:07:41 deraadt Exp $ */ /* $NetBSD: interrupt.c,v 1.46 2000/06/03 20:47:36 thorpej Exp $ */ /*- @@ -574,7 +574,7 @@ softintr_disestablish(void *arg) } mtx_leave(&asi->softintr_mtx); - free(sih, M_DEVBUF, 0); + free(sih, M_DEVBUF, sizeof *sih); } /* diff --git a/sys/arch/alpha/dev/shared_intr.c b/sys/arch/alpha/dev/shared_intr.c index 7dbeb939bae..e46bac8d02d 100644 --- a/sys/arch/alpha/dev/shared_intr.c +++ b/sys/arch/alpha/dev/shared_intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shared_intr.c,v 1.21 2015/05/19 20:28:14 miod Exp $ */ +/* $OpenBSD: shared_intr.c,v 1.22 2015/09/02 14:07:43 deraadt Exp $ */ /* $NetBSD: shared_intr.c,v 1.13 2000/03/19 01:46:18 thorpej Exp $ */ /* @@ -205,7 +205,7 @@ alpha_shared_intr_disestablish(intr, cookie) */ evcount_detach(&ih->ih_count); TAILQ_REMOVE(&intr[num].intr_q, ih, ih_q); - free(ih, M_DEVBUF, 0); + free(ih, M_DEVBUF, sizeof *ih); } int diff --git a/sys/arch/alpha/eisa/eisa_machdep.c b/sys/arch/alpha/eisa/eisa_machdep.c index 8da7288638d..475002b4257 100644 --- a/sys/arch/alpha/eisa/eisa_machdep.c +++ b/sys/arch/alpha/eisa/eisa_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eisa_machdep.c,v 1.5 2014/07/12 18:44:40 tedu Exp $ */ +/* $OpenBSD: eisa_machdep.c,v 1.6 2015/09/02 14:07:43 deraadt Exp $ */ /* $NetBSD: eisa_machdep.c,v 1.1 2000/07/29 23:18:47 thorpej Exp $ */ /*- @@ -572,8 +572,8 @@ eisa_init(eisa_chipset_tag_t ec) } } - free(cdata, M_TEMP, 0); - free(data, M_TEMP, 0); + free(cdata, M_TEMP, CBUFSIZE); + free(data, M_TEMP, CBUFSIZE); } /* |