From 71f0ed87dbe11cdb90472173e5934cc253d5e104 Mon Sep 17 00:00:00 2001 From: Sebastien Marie Date: Thu, 9 May 2019 17:38:24 +0000 Subject: add free sizes ok tedu@ --- sys/dev/isa/isa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/isa') 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); } } -- cgit v1.2.3