summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_tht.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-08-28 00:03:53 +0000
committerderaadt <deraadt@openbsd.org>2015-08-28 00:03:53 +0000
commitbae2bd509caafb58e32eb30678e33df546f85cbd (patch)
treee2e5d64033fc6209583f14e91349f7b131de68f5 /sys/dev/pci/if_tht.c
parentUpdate: add include/libdrm, sort include/EGL, add share/util-macros (diff)
downloadwireguard-openbsd-bae2bd509caafb58e32eb30678e33df546f85cbd.tar.xz
wireguard-openbsd-bae2bd509caafb58e32eb30678e33df546f85cbd.zip
fairly simple sizes for free(); ok tedu
Diffstat (limited to 'sys/dev/pci/if_tht.c')
-rw-r--r--sys/dev/pci/if_tht.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index e4f5c9d051d..84a67976d0e 100644
--- a/sys/dev/pci/if_tht.c
+++ b/sys/dev/pci/if_tht.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tht.c,v 1.132 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_tht.c,v 1.133 2015/08/28 00:03:53 deraadt Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -1717,7 +1717,7 @@ tht_fw_load(struct tht_softc *sc)
tht_write(sc, THT_REG_INIT_SEMAPHORE, 0x1);
err:
- free(fw, M_DEVBUF, 0);
+ free(fw, M_DEVBUF, fwlen);
return (error);
}