diff options
author | 2019-05-09 17:38:23 +0000 | |
---|---|---|
committer | 2019-05-09 17:38:23 +0000 | |
commit | 2bb3ae2570c17e44d9fa0ed2c8c0f965f4981539 (patch) | |
tree | 42241117b55198803c3202f3431e3315d16020ef | |
parent | Shuffle code to make v4_config() and v6_config() look even (diff) | |
download | wireguard-openbsd-2bb3ae2570c17e44d9fa0ed2c8c0f965f4981539.tar.xz wireguard-openbsd-2bb3ae2570c17e44d9fa0ed2c8c0f965f4981539.zip |
add free sizes
ok tedu@
-rw-r--r-- | sys/dev/isa/isa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/isa/isa.c b/sys/dev/isa/isa.c index d5d6f846ed0..2e362e58165 100644 --- a/sys/dev/isa/isa.c +++ b/sys/dev/isa/isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isa.c,v 1.46 2015/05/25 15:19:22 miod Exp $ */ +/* $OpenBSD: isa.c,v 1.47 2019/05/09 17:38:23 semarie Exp $ */ /* $NetBSD: isa.c,v 1.85 1996/05/14 00:31:04 thorpej Exp $ */ /* @@ -257,7 +257,7 @@ isascan(parent, match) if (autoconf_verbose) printf(">>> probing for %s* finished\n", cf->cf_driver->cd_name); - free(dev, M_DEVBUF, 0); + free(dev, M_DEVBUF, cf->cf_attach->ca_devsize); return; } @@ -270,7 +270,7 @@ isascan(parent, match) !isa_intr_check(sc->sc_ic, ia.ia_irq, IST_EDGE)) { printf("%s%d: irq %d already in use\n", cf->cf_driver->cd_name, cf->cf_unit, ia.ia_irq); - free(dev, M_DEVBUF, 0); + free(dev, M_DEVBUF, cf->cf_attach->ca_devsize); } else { #endif if (autoconf_verbose) @@ -291,7 +291,7 @@ isascan(parent, match) if (autoconf_verbose) printf(">>> probing for %s%d failed\n", cf->cf_driver->cd_name, cf->cf_unit); - free(dev, M_DEVBUF, 0); + free(dev, M_DEVBUF, cf->cf_attach->ca_devsize); } } |