summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_uath.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2017-03-26 15:31:15 +0000
committerderaadt <deraadt@openbsd.org>2017-03-26 15:31:15 +0000
commitc9ee9455279082335f19dc228d9e96f7e238525e (patch)
treeb8eebe8bfb8e1cbb6164a76a1bc771c7e0116d32 /sys/dev/usb/if_uath.c
parentOne string buffer can use recallocarray() to ensure that the address space (diff)
downloadwireguard-openbsd-c9ee9455279082335f19dc228d9e96f7e238525e.tar.xz
wireguard-openbsd-c9ee9455279082335f19dc228d9e96f7e238525e.zip
Add sizes to various free(9) calls. Fixing the simpler ones first.
ok natano visa
Diffstat (limited to 'sys/dev/usb/if_uath.c')
-rw-r--r--sys/dev/usb/if_uath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c
index 1c3ba77970a..96ec1ef753e 100644
--- a/sys/dev/usb/if_uath.c
+++ b/sys/dev/usb/if_uath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_uath.c,v 1.79 2017/01/22 10:17:39 dlg Exp $ */
+/* $OpenBSD: if_uath.c,v 1.80 2017/03/26 15:31:15 deraadt Exp $ */
/*-
* Copyright (c) 2006
@@ -213,7 +213,7 @@ uath_attachhook(struct device *self)
}
error = uath_loadfirmware(sc, fw, size);
- free(fw, M_DEVBUF, 0);
+ free(fw, M_DEVBUF, size);
if (error == 0) {
/*