[ofa-general] [PATCH 2/6] [DAPL v1] Add missing memset
Patrick Marchand Latifi
patrick.latifi at qlogic.com
Wed Feb 13 14:57:58 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 9568ab9..d5d8666 100644
--- 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