summaryrefslogtreecommitdiff
path: root/sys/dev/rd.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-07-12 18:48:54 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-07-12 18:48:54 +0000
commit9355adab6702f4798111e38a2e7e7be541270937 (patch)
tree1fda49353b276c780d60c7609e331839f2c13505 /sys/dev/rd.c
parent48b6cac396e42c57b5037f5a67d6cd7afb1733d6 (diff)
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/rd.c')
-rw-r--r--sys/dev/rd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/rd.c b/sys/dev/rd.c
index 6e626b05dfc..bf2f63715e8 100644
--- a/sys/dev/rd.c
+++ b/sys/dev/rd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rd.c,v 1.6 2013/06/11 16:42:13 deraadt Exp $ */
+/* $OpenBSD: rd.c,v 1.7 2014/07/12 18:48:51 tedu Exp $ */
/*
* Copyright (c) 2011 Matthew Dempsky <matthew@dempsky.org>
@@ -265,7 +265,7 @@ rdioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct proc *p)
lp = malloc(sizeof(*lp), M_TEMP, M_WAITOK);
rdgetdisklabel(dev, sc, lp, 0);
bcopy(lp, sc->sc_dk.dk_label, sizeof(*lp));
- free(lp, M_TEMP);
+ free(lp, M_TEMP, 0);
goto done;
case DIOCGPDINFO: