diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-12 18:48:54 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-12 18:48:54 +0000 |
commit | 9355adab6702f4798111e38a2e7e7be541270937 (patch) | |
tree | 1fda49353b276c780d60c7609e331839f2c13505 /sys/dev/pci/sv.c | |
parent | 48b6cac396e42c57b5037f5a67d6cd7afb1733d6 (diff) |
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
Diffstat (limited to 'sys/dev/pci/sv.c')
-rw-r--r-- | sys/dev/pci/sv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/sv.c b/sys/dev/pci/sv.c index c39fc48c489..5fef1c652cb 100644 --- a/sys/dev/pci/sv.c +++ b/sys/dev/pci/sv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sv.c,v 1.30 2013/11/15 16:46:27 brad Exp $ */ +/* $OpenBSD: sv.c,v 1.31 2014/07/12 18:48:52 tedu Exp $ */ /* * Copyright (c) 1998 Constantine Paul Sapuntzakis @@ -1395,7 +1395,7 @@ sv_malloc(void *addr, int direction, size_t size, int pool, int flags) return (0); error = sv_allocmem(sc, size, 16, p); if (error) { - free(p, pool); + free(p, pool, 0); return (0); } p->next = sc->sc_dmas; @@ -1413,7 +1413,7 @@ sv_free(void *addr, void *ptr, int pool) if (KERNADDR(*p) == ptr) { sv_freemem(sc, *p); *p = (*p)->next; - free(*p, pool); + free(*p, pool, 0); return; } } |