[PATCH 09/12] unblock_monitor(): Check sra is valid before dereferencing
From: <hidden>
Date: 2011-11-02 14:42:14
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: <hidden>
Date: 2011-11-02 14:42:14
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Jes Sorensen <redacted> Signed-off-by: Jes Sorensen <redacted> --- msg.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/msg.c b/msg.c
index 87d3b8d..dc780b3 100644
--- a/msg.c
+++ b/msg.c@@ -448,6 +448,8 @@ void unblock_monitor(char *container, const int unfreeze) continue; sysfs_free(sra); sra = sysfs_read(-1, e->devnum, GET_VERSION|GET_LEVEL); + if (!sra) + continue; if (sra->array.level > 0) to_ping++; if (unblock_subarray(sra, unfreeze))
--
1.7.6.4