summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pccbb.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-11 09:15:45 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-11 09:15:45 +0000
commitf2d8c904670cefc4a518ff3b80ffba0bf42d4203 (patch)
tree8a859658f4e4aaa4943ca0a6101fb77bc3eaaa71 /sys/dev/pci/pccbb.c
parentefa645beab0c97cf852ea9516be38e20b0194723 (diff)
fairly simple size for free()
Diffstat (limited to 'sys/dev/pci/pccbb.c')
-rw-r--r--sys/dev/pci/pccbb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/pccbb.c b/sys/dev/pci/pccbb.c
index 1a5bcfecbf1..0fad698304b 100644
--- a/sys/dev/pci/pccbb.c
+++ b/sys/dev/pci/pccbb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pccbb.c,v 1.95 2015/07/20 15:44:43 kettenis Exp $ */
+/* $OpenBSD: pccbb.c,v 1.96 2015/09/11 09:15:44 deraadt Exp $ */
/* $NetBSD: pccbb.c,v 1.96 2004/03/28 09:49:31 nakayama Exp $ */
/*
@@ -1576,7 +1576,7 @@ pccbb_intr_disestablish(struct pccbb_softc *sc, void *ih)
if (pil == ih) {
evcount_detach(&pil->pil_count);
*pil_prev = pil->pil_next;
- free(pil, M_DEVBUF, 0);
+ free(pil, M_DEVBUF, sizeof *pil);
DPRINTF(("pccbb_intr_disestablish frees one pil\n"));
break;
}
@@ -2681,7 +2681,7 @@ pccbb_winlist_delete(struct pccbb_win_chain_head *head, bus_space_handle_t bsh,
}
TAILQ_REMOVE(head, chainp, wc_list);
- free(chainp, M_DEVBUF, 0);
+ free(chainp, M_DEVBUF, sizeof *chainp);
return 0;
}