summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ath.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/ic/ath.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/ic/ath.c')
-rw-r--r--sys/dev/ic/ath.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index 1327d85f077..202a4eb4324 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ath.c,v 1.100 2014/07/10 11:34:48 stsp Exp $ */
+/* $OpenBSD: ath.c,v 1.101 2014/07/12 18:48:17 tedu Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
@@ -1678,7 +1678,7 @@ ath_desc_free(struct ath_softc *sc)
TAILQ_INIT(&sc->sc_rxbuf);
TAILQ_INIT(&sc->sc_txbuf);
TAILQ_INIT(&sc->sc_txq);
- free(sc->sc_bufptr, M_DEVBUF);
+ free(sc->sc_bufptr, M_DEVBUF, 0);
sc->sc_bufptr = NULL;
}
@@ -2999,7 +2999,7 @@ ath_getchannels(struct ath_softc *sc, HAL_BOOL outdoor, HAL_BOOL xchanmode)
HAL_MODE_ALL, outdoor, xchanmode)) {
printf("%s: unable to collect channel list from hal\n",
ifp->if_xname);
- free(chans, M_TEMP);
+ free(chans, M_TEMP, 0);
return EINVAL;
}
@@ -3030,7 +3030,7 @@ ath_getchannels(struct ath_softc *sc, HAL_BOOL outdoor, HAL_BOOL xchanmode)
/* count valid channels */
sc->sc_nchan++;
}
- free(chans, M_TEMP);
+ free(chans, M_TEMP, 0);
if (sc->sc_nchan < 1) {
printf("%s: no valid channels for regdomain %s(%u)\n",