summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-10-05 11:40:38 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-10-05 11:40:38 +0000
commit45ae0d4a273e0ff32536f658ff278e76d0ad6d1a (patch)
tree06092a3fab823306ad82ca83497b674e9f3eedff /sys/arch
parent9ea4e673b6353446f836efdbcaf8822efc79f044 (diff)
pass size to free.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/sparc64/intr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/intr.c b/sys/arch/sparc64/sparc64/intr.c
index d1ce89d33f5..d727e5829f8 100644
--- a/sys/arch/sparc64/sparc64/intr.c
+++ b/sys/arch/sparc64/sparc64/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.51 2014/10/05 11:32:43 dlg Exp $ */
+/* $OpenBSD: intr.c,v 1.52 2014/10/05 11:40:37 dlg Exp $ */
/* $NetBSD: intr.c,v 1.39 2001/07/19 23:38:11 eeh Exp $ */
/*
@@ -333,7 +333,9 @@ softintr_establish(int level, void (*fun)(void *), void *arg)
void
softintr_disestablish(void *cookie)
{
- free(cookie, M_DEVBUF, 0);
+ struct intrhand *ih = cookie;
+
+ free(ih, M_DEVBUF, sizeof(*ih));
}
void