summaryrefslogtreecommitdiff
path: root/sys/dev/pci/auglx.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-07-12 18:48:54 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-07-12 18:48:54 +0000
commit9355adab6702f4798111e38a2e7e7be541270937 (patch)
tree1fda49353b276c780d60c7609e331839f2c13505 /sys/dev/pci/auglx.c
parent48b6cac396e42c57b5037f5a67d6cd7afb1733d6 (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/auglx.c')
-rw-r--r--sys/dev/pci/auglx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/auglx.c b/sys/dev/pci/auglx.c
index 734c7dbf7a1..3b679f1e3e9 100644
--- a/sys/dev/pci/auglx.c
+++ b/sys/dev/pci/auglx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auglx.c,v 1.11 2013/12/06 21:03:03 deraadt Exp $ */
+/* $OpenBSD: auglx.c,v 1.12 2014/07/12 18:48:51 tedu Exp $ */
/*
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -989,7 +989,7 @@ auglx_allocm(void *v, int direction, size_t size, int pool, int flags)
error = auglx_allocmem(sc, size, PAGE_SIZE, p);
if (error) {
- free(p, pool);
+ free(p, pool, 0);
return NULL;
}
@@ -1010,7 +1010,7 @@ auglx_freem(void *v, void *ptr, int pool)
if (p->addr == ptr) {
auglx_freemem(sc, p);
*pp = p->next;
- free(p, pool);
+ free(p, pool, 0);
return;
}
}