From 9355adab6702f4798111e38a2e7e7be541270937 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 12 Jul 2014 18:48:54 +0000 Subject: add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis. --- sys/dev/pci/if_sk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/if_sk.c') diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index 9606e386bd8..d4a50c63b67 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.168 2014/04/19 18:29:39 henning Exp $ */ +/* $OpenBSD: if_sk.c,v 1.169 2014/07/12 18:48:52 tedu Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -2682,7 +2682,7 @@ sk_stop(struct sk_if_softc *sc_if, int softonly) while ((dma = SIMPLEQ_FIRST(&sc_if->sk_txmap_head))) { SIMPLEQ_REMOVE_HEAD(&sc_if->sk_txmap_head, link); bus_dmamap_destroy(sc->sc_dmatag, dma->dmamap); - free(dma, M_DEVBUF); + free(dma, M_DEVBUF, 0); } } -- cgit v1.2.3