summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-10 10:36:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-10 10:36:49 +0000
commitf4bbc3e5064b35921bf3265db003b18aa7db0142 (patch)
tree68d5ba0aca7fdaa43fa50621b661d81cd7f0b925
parentec88c815e4ac42f0dccefa89645df1808a66384d (diff)
simple size for free()
-rw-r--r--sys/dev/pci/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 4105ac49969..17f330a9169 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.109 2014/11/27 19:03:44 kettenis Exp $ */
+/* $OpenBSD: pci.c,v 1.110 2015/09/10 10:36:48 deraadt Exp $ */
/* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */
/*
@@ -575,7 +575,7 @@ pci_detach_devices(struct pci_softc *sc, int flags)
for (pd = LIST_FIRST(&sc->sc_devs); pd != NULL; pd = next) {
next = LIST_NEXT(pd, pd_next);
- free(pd, M_DEVBUF, 0);
+ free(pd, M_DEVBUF, sizeof *pd);
}
LIST_INIT(&sc->sc_devs);