summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/xbow
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-08 10:21:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-08 10:21:51 +0000
commitc3b32008dd21a7dbcb3320913bb597c6a15e35a5 (patch)
treed4b6c80b156051624e16fc1094e9bf96ab17ffc5 /sys/arch/sgi/xbow
parent59ef1900870bbf991c1371b2a82f8d62061e2356 (diff)
sizes for free(); ok semarie
Diffstat (limited to 'sys/arch/sgi/xbow')
-rw-r--r--sys/arch/sgi/xbow/xbridge.c6
-rw-r--r--sys/arch/sgi/xbow/xheart.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sgi/xbow/xbridge.c b/sys/arch/sgi/xbow/xbridge.c
index ddeec0660d9..bf9eca4b62b 100644
--- a/sys/arch/sgi/xbow/xbridge.c
+++ b/sys/arch/sgi/xbow/xbridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xbridge.c,v 1.96 2015/06/24 16:52:52 miod Exp $ */
+/* $OpenBSD: xbridge.c,v 1.97 2015/09/08 10:21:50 deraadt Exp $ */
/*
* Copyright (c) 2008, 2009, 2011 Miodrag Vallat.
@@ -1331,7 +1331,7 @@ xbridge_intr_establish(void *cookie, pci_intr_handle_t ih, int level,
LIST_INIT(&xi->xi_handlers);
if (xbow_intr_register(xb->xb_widget, level, &intrsrc) != 0) {
- free(xi, M_DEVBUF, 0);
+ free(xi, M_DEVBUF, sizeof *xi);
return NULL;
}
@@ -1439,7 +1439,7 @@ xbridge_intr_disestablish(void *cookie, void *vih)
*/
}
- free(xih, M_DEVBUF, 0);
+ free(xih, M_DEVBUF, sizeof *xih);
}
int
diff --git a/sys/arch/sgi/xbow/xheart.c b/sys/arch/sgi/xbow/xheart.c
index 19d56516461..b8aa0bf2378 100644
--- a/sys/arch/sgi/xbow/xheart.c
+++ b/sys/arch/sgi/xbow/xheart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xheart.c,v 1.27 2014/09/30 06:51:58 jmatthew Exp $ */
+/* $OpenBSD: xheart.c,v 1.28 2015/09/08 10:21:50 deraadt Exp $ */
/*
* Copyright (c) 2008 Miodrag Vallat.
@@ -374,7 +374,7 @@ xheart_intr_disestablish(int intrbit)
splx(s);
if (ISSET(ih->ih_flags, IH_ALLOCATED))
- free(ih, M_DEVBUF, 0);
+ free(ih, M_DEVBUF, sizeof *ih);
}
void