diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-12 18:48:54 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-12 18:48:54 +0000 |
commit | 9355adab6702f4798111e38a2e7e7be541270937 (patch) | |
tree | 1fda49353b276c780d60c7609e331839f2c13505 /sys/dev/ic/bwi.c | |
parent | 48b6cac396e42c57b5037f5a67d6cd7afb1733d6 (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/bwi.c')
-rw-r--r-- | sys/dev/ic/bwi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c index 2f316ecab99..33a9b4eda11 100644 --- a/sys/dev/ic/bwi.c +++ b/sys/dev/ic/bwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwi.c,v 1.101 2014/03/19 10:09:19 mpi Exp $ */ +/* $OpenBSD: bwi.c,v 1.102 2014/07/12 18:48:17 tedu Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. @@ -1660,7 +1660,7 @@ bwi_get_firmware(const char *name, const uint8_t *ucode, size_t size_ucode, } } - free(h, M_DEVBUF); + free(h, M_DEVBUF, 0); return (ret); } @@ -1837,7 +1837,7 @@ void bwi_mac_fw_free(struct bwi_mac *mac) { if (mac->mac_fw != NULL) { - free(mac->mac_fw, M_DEVBUF); + free(mac->mac_fw, M_DEVBUF, 0); mac->mac_fw = NULL; } } @@ -7798,7 +7798,7 @@ bwi_dma_txstats_free(struct bwi_softc *sc) bus_dmamap_unload(sc->sc_dmat, st->stats_dmap); bus_dmamem_free(sc->sc_dmat, &st->stats_seg, 1); - free(st, M_DEVBUF); + free(st, M_DEVBUF, 0); } int |