Make sure to zero out memory before calling madvise to increase robustness
commit779c6befc03122c819d2f81a2052fac6a4a43536
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Jun 2009 17:39:00 +0000 (22 12:39 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 24 Jun 2009 14:09:15 +0000 (24 09:09 -0500)
tree663d324d4a3635558ac8efd2c113d70330cfcc81
parent95533d5ffbdf3f45e8daa64477b63cf771376618
Make sure to zero out memory before calling madvise to increase robustness

Avi pointed out that it's not entirely safe to rely on madvise zeroing out
memory.  So let's do it explicitly before calling madvise.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c