diff options
author | 2014-07-12 18:48:51 +0000 | |
---|---|---|
committer | 2014-07-12 18:48:51 +0000 | |
commit | df2ac69f82ae44a202c3df500ca0878a86fb544f (patch) | |
tree | 5825e0b1a7cb8fb9323f9ec8644a6b28a35351ab /sys/dev/pci/if_ipw.c | |
parent | add a size argument to free. will be used soon, but for now default to 0. (diff) | |
download | wireguard-openbsd-df2ac69f82ae44a202c3df500ca0878a86fb544f.tar.xz wireguard-openbsd-df2ac69f82ae44a202c3df500ca0878a86fb544f.zip |
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/pci/if_ipw.c')
-rw-r--r-- | sys/dev/pci/if_ipw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 62bc5188bb5..35d22a08832 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ipw.c,v 1.99 2014/03/27 11:32:29 daniel Exp $ */ +/* $OpenBSD: if_ipw.c,v 1.100 2014/07/12 18:48:51 tedu Exp $ */ /*- * Copyright (c) 2004-2008 @@ -1690,7 +1690,7 @@ ipw_read_firmware(struct ipw_softc *sc, struct ipw_firmware *fw) return 0; -fail: free(fw->data, M_DEVBUF); +fail: free(fw->data, M_DEVBUF, 0); return error; } @@ -2031,7 +2031,7 @@ ipw_init(struct ifnet *ifp) goto fail2; } sc->sc_flags |= IPW_FLAG_FW_INITED; - free(fw.data, M_DEVBUF); + free(fw.data, M_DEVBUF, 0); fw.data = NULL; /* retrieve information tables base addresses */ @@ -2056,7 +2056,7 @@ ipw_init(struct ifnet *ifp) return 0; -fail2: free(fw.data, M_DEVBUF); +fail2: free(fw.data, M_DEVBUF, 0); fw.data = NULL; fail1: ipw_stop(ifp, 0); return error; |