diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-12-20 15:31:01 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-12-20 15:31:01 +0000 |
commit | 868dea4ba5f18e022f39c564fe781f33395b63dd (patch) | |
tree | 6dbd3394d320775a052bab387e675f3b9262224b /sys/dev/pci | |
parent | 2ba56841b116530411c7f63bdac8e64722530b91 (diff) |
Set free(9) size argument. From Michael W. Bombardieri <mb at ii.net>.
Thanks.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/fms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/fms.c b/sys/dev/pci/fms.c index 6511265d0e9..b07694ff71a 100644 --- a/sys/dev/pci/fms.c +++ b/sys/dev/pci/fms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fms.c,v 1.29 2016/09/19 06:46:44 ratchov Exp $ */ +/* $OpenBSD: fms.c,v 1.30 2016/12/20 15:31:00 ratchov Exp $ */ /* $NetBSD: fms.c,v 1.5.4.1 2000/06/30 16:27:50 simonb Exp $ */ /*- @@ -607,7 +607,7 @@ fail_create: fail_map: bus_dmamem_free(sc->sc_dmat, &p->seg, 1); fail_alloc: - free(p, pool, 0); + free(p, pool, sizeof(*p)); return 0; } @@ -625,7 +625,7 @@ fms_free(void *addr, void *ptr, int pool) bus_dmamem_free(sc->sc_dmat, &p->seg, 1); *pp = p->next; - free(p, pool, 0); + free(p, pool, sizeof(*p)); return; } |