diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-12 18:48:54 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-12 18:48:54 +0000 |
commit | 9355adab6702f4798111e38a2e7e7be541270937 (patch) | |
tree | 1fda49353b276c780d60c7609e331839f2c13505 /sys/dev/rnd.c | |
parent | 48b6cac396e42c57b5037f5a67d6cd7afb1733d6 (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/rnd.c')
-rw-r--r-- | sys/dev/rnd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index d6414b6de34..a6afe5d1be5 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.157 2014/06/14 18:01:42 deraadt Exp $ */ +/* $OpenBSD: rnd.c,v 1.158 2014/07/12 18:48:51 tedu Exp $ */ /* * Copyright (c) 2011 Theo de Raadt. @@ -842,7 +842,7 @@ randomread(dev_t dev, struct uio *uio, int ioflag) if (myctx) explicit_bzero(&lctx, sizeof(lctx)); explicit_bzero(buf, POOLBYTES); - free(buf, M_TEMP); + free(buf, M_TEMP, 0); return ret; } @@ -875,7 +875,7 @@ randomwrite(dev_t dev, struct uio *uio, int flags) arc4_init(NULL, NULL); explicit_bzero(buf, POOLBYTES); - free(buf, M_TEMP); + free(buf, M_TEMP, 0); return ret; } |