Module Name: src Committed By: pooka Date: Thu Feb 10 13:29:03 UTC 2011
Modified Files: src/tests/dev/md: h_mdserv.c Log Message: explicitly zero-fill the initial md backend To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/dev/md/h_mdserv.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/dev/md/h_mdserv.c diff -u src/tests/dev/md/h_mdserv.c:1.3 src/tests/dev/md/h_mdserv.c:1.4 --- src/tests/dev/md/h_mdserv.c:1.3 Tue Nov 30 14:31:14 2010 +++ src/tests/dev/md/h_mdserv.c Thu Feb 10 13:29:02 2011 @@ -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;