summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_rsu.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_rsu.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_rsu.c')
-rw-r--r--sys/dev/usb/if_rsu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_rsu.c b/sys/dev/usb/if_rsu.c
index b922d0c7580..a88fab44bad 100644
--- a/sys/dev/usb/if_rsu.c
+++ b/sys/dev/usb/if_rsu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rsu.c,v 1.37 2017/01/22 10:17:39 dlg Exp $ */
+/* $OpenBSD: if_rsu.c,v 1.38 2017/03/26 15:31:15 deraadt Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -2139,7 +2139,7 @@ rsu_load_firmware(struct rsu_softc *sc)
goto fail;
}
fail:
- free(fw, M_DEVBUF, 0);
+ free(fw, M_DEVBUF, size);
return (error);
}