summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_uath.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-03-26 15:31:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-03-26 15:31:16 +0000
commit0960796318a49681f95e509960991339c8e9ccbe (patch)
tree901b97163c8b0a266ffe9f5e62376af6356551be /sys/dev/usb/if_uath.c
parentaeee42adf59ba123e92b0d27d239de085540f864 (diff)
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) {
/*