From c3b32008dd21a7dbcb3320913bb597c6a15e35a5 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 8 Sep 2015 10:21:51 +0000 Subject: sizes for free(); ok semarie --- sys/arch/sgi/xbow/xbridge.c | 6 +++--- sys/arch/sgi/xbow/xheart.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/arch/sgi/xbow') 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 -- cgit v1.2.3