summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 13d7a31)
raw | patch | inline | side by side (parent: 13d7a31)
author | Korynkevych, RomanX <romanx.korynkevych@intel.com> | |
Tue, 20 Jun 2017 15:02:29 +0000 (16:02 +0100) | ||
committer | Tahhan, Maryam <maryam.tahhan@intel.com> | |
Thu, 6 Jul 2017 13:38:37 +0000 (14:38 +0100) |
mcelog plugin got stuck after corrected and uncorrected memory errors injection.
This is caused due to pointing n.meta to unknown place in memory as n.meta
was not set to NULL after meta data has been cleared.
Change-Id: I81bdbeb43a9858f0071e1798e4d7a15423832a35
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
This is caused due to pointing n.meta to unknown place in memory as n.meta
was not set to NULL after meta data has been cleared.
Change-Id: I81bdbeb43a9858f0071e1798e4d7a15423832a35
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
src/mcelog.c | patch | blob | history |
diff --git a/src/mcelog.c b/src/mcelog.c
index 865b0d128752a81ddd8d3a3bb878ee61305a60f2..072564bfe680bd0be52caf8c93459b94b807eb08 100644 (file)
--- a/src/mcelog.c
+++ b/src/mcelog.c
if (n.meta)
plugin_notification_meta_free(n.meta);
+ n.meta = NULL;
}
}
sizeof(n.type_instance));
n.severity = NOTIF_FAILURE;
plugin_dispatch_notification(&n);
-
if (n.meta)
plugin_notification_meta_free(n.meta);
+ n.meta = NULL;
}
}