summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-08-27 19:51:36 +0000
committerderaadt <deraadt@openbsd.org>2015-08-27 19:51:36 +0000
commitf6c28b3a06335ff63f898a194a6bea37f414e96a (patch)
tree67816e904dd0387d4644d76abffd5c5c17d2fd50 /sys
parentmissing va_end(); OK deraadt (diff)
downloadwireguard-openbsd-f6c28b3a06335ff63f898a194a6bea37f414e96a.tar.xz
wireguard-openbsd-f6c28b3a06335ff63f898a194a6bea37f414e96a.zip
size for free()
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pv/vmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/vmt.c b/sys/dev/pv/vmt.c
index a2763b3e081..bf51cb1e39d 100644
--- a/sys/dev/pv/vmt.c
+++ b/sys/dev/pv/vmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmt.c,v 1.4 2015/08/12 09:15:52 uebayasi Exp $ */
+/* $OpenBSD: vmt.c,v 1.5 2015/08/27 19:51:36 deraadt Exp $ */
/*
* Copyright (c) 2007 David Crawshaw <david@zentus.com>
@@ -375,7 +375,7 @@ vmt_attach(struct device *parent, struct device *self, void *aux)
return;
free:
- free(sc->sc_rpc_buf, M_DEVBUF, 0);
+ free(sc->sc_rpc_buf, M_DEVBUF, VMT_RPC_BUFLEN);
}
void