summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_uath.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-07-12 18:48:51 +0000
committertedu <tedu@openbsd.org>2014-07-12 18:48:51 +0000
commitdf2ac69f82ae44a202c3df500ca0878a86fb544f (patch)
tree5825e0b1a7cb8fb9323f9ec8644a6b28a35351ab /sys/dev/usb/if_uath.c
parentadd a size argument to free. will be used soon, but for now default to 0. (diff)
downloadwireguard-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/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 fd8c22e7925..b3a5547bd5c 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.59 2014/07/12 07:59:23 mpi Exp $ */
+/* $OpenBSD: if_uath.c,v 1.60 2014/07/12 18:48:52 tedu Exp $ */
/*-
* Copyright (c) 2006
@@ -217,7 +217,7 @@ uath_attachhook(void *xsc)
}
error = uath_loadfirmware(sc, fw, size);
- free(fw, M_DEVBUF);
+ free(fw, M_DEVBUF, 0);
if (error == 0) {
usb_port_status_t status;