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