diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-10-24 20:02:08 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-10-24 20:02:08 +0000 |
commit | 0ccbb2982f76d6381da3024206cf8f92c18d3acf (patch) | |
tree | c9f8997549426f97e711a613983f8a94fecacaae /sys/dev/rnd.c | |
parent | 93dbf6e6044d297c9e6f4fa20f26fa281a75659d (diff) |
obvious sizes for free
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 e1aa5789daf..0fa701a009b 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.162 2014/10/20 00:48:57 tedu Exp $ */ +/* $OpenBSD: rnd.c,v 1.163 2014/10/24 20:02:07 tedu Exp $ */ /* * Copyright (c) 2011 Theo de Raadt. @@ -843,7 +843,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, 0); + free(buf, M_TEMP, POOLBYTES); return ret; } @@ -876,7 +876,7 @@ randomwrite(dev_t dev, struct uio *uio, int flags) arc4_init(NULL, NULL); explicit_bzero(buf, POOLBYTES); - free(buf, M_TEMP, 0); + free(buf, M_TEMP, POOLBYTES); return ret; } |