Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/dev/md explicitly zero-fill the initial md backend
details: https://anonhg.NetBSD.org/src/rev/9317fd2332fb
branches: trunk
changeset: 761900:9317fd2332fb
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Feb 10 13:29:02 2011 +0000
description:
explicitly zero-fill the initial md backend
diffstat:
tests/dev/md/h_mdserv.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r cf33df3fc08c -r 9317fd2332fb tests/dev/md/h_mdserv.c
--- a/tests/dev/md/h_mdserv.c Thu Feb 10 13:04:31 2011 +0000
+++ b/tests/dev/md/h_mdserv.c Thu Feb 10 13:29:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_mdserv.c,v 1.3 2010/11/30 14:31:14 pooka Exp $ */
+/* $NetBSD: h_mdserv.c,v 1.4 2011/02/10 13:29:02 pooka Exp $ */
#include <sys/types.h>
#include <sys/mman.h>
@@ -70,7 +70,7 @@
if (argc != 2)
exit(1);
- md.md_addr = malloc(MDSIZE);
+ md.md_addr = calloc(1, MDSIZE);
md.md_size = MDSIZE;
md.md_type = MD_UMEM_SERVER;
Home |
Main Index |
Thread Index |
Old Index