[ofa-general] [PATCH 1/5] [DAPL v2] Add missing memset

Patrick Marchand Latifi patrick.latifi at qlogic.com
Wed Feb 13 15:00:07 PST 2008


Zero-out memory otherwise we might base our cleanup decisions on
uninitialized memory.

Signed-off-by: Patrick Marchand Latifi <patrick.latifi at qlogic.com>
---

 dat/common/dat_sr.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dat/common/dat_sr.c b/dat/common/dat_sr.c
index 79a15cc..05be499 100755
--- a/dat/common/dat_sr.c
+++ b/dat/common/dat_sr.c
@@ -142,6 +142,8 @@ dat_sr_insert (
 	goto bail;
     }
 
+    dat_os_memset (data, '\0', sizeof (DAT_SR_ENTRY));
+
     lib_path_len = strlen (entry->lib_path);
     lib_path_size = (lib_path_len + 1) * sizeof (char);
 




More information about the general mailing list