diff options
author | Frederic Cambus <fcambus@cvs.openbsd.org> | 2019-12-14 12:35:20 +0000 |
---|---|---|
committer | Frederic Cambus <fcambus@cvs.openbsd.org> | 2019-12-14 12:35:20 +0000 |
commit | a8925e3b0cb9b375a7f917eee25d7e16e7b67f58 (patch) | |
tree | 74082a0a60154f2000d1ed3f8e2154b0aa98868b /sys/dev | |
parent | 6e46379ae1f35aea4dfe424dc8b4cae78d52e3f7 (diff) |
Add sizes for free() in auacer(4).
OK tedu@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/auacer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/auacer.c b/sys/dev/pci/auacer.c index 8537ba9fda2..c42f78e0abb 100644 --- a/sys/dev/pci/auacer.c +++ b/sys/dev/pci/auacer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auacer.c,v 1.21 2016/12/12 06:43:01 ratchov Exp $ */ +/* $OpenBSD: auacer.c,v 1.22 2019/12/14 12:35:19 fcambus Exp $ */ /* $NetBSD: auacer.c,v 1.3 2004/11/10 04:20:26 kent Exp $ */ /*- @@ -603,7 +603,7 @@ auacer_allocm(void *v, int direction, size_t size, int pool, int flags) error = auacer_allocmem(sc, size, PAGE_SIZE, p); if (error) { - free(p, pool, 0); + free(p, pool, sizeof(*p)); return (NULL); } @@ -623,7 +623,7 @@ auacer_freem(void *v, void *ptr, int pool) if (KERNADDR(p) == ptr) { auacer_freemem(sc, p); *pp = p->next; - free(p, pool, 0); + free(p, pool, sizeof(*p)); return; } } |