diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2011-11-03 08:09:19 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-11-03 08:09:19 +1100 |
commit | 29b59ca5c3b8d9c0385efbed232a9820ed9fe58e (patch) | |
tree | 302df201f129001e154b48a966e3d8321381c18f /msg.c | |
parent | 4dab422a6537ce38b7817fbe7eec21940f41c463 (diff) | |
download | mdadm-29b59ca5c3b8d9c0385efbed232a9820ed9fe58e.tar.gz |
unblock_monitor(): Check sra is valid before dereferencing
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)) |