X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=msg.c;h=dc780b3ed4bf6fde03a0e660f89f7c99c1584031;hb=29b59ca5c3b8d9c0385efbed232a9820ed9fe58e;hp=87d3b8d6039b6c17a963d0727c613143135c3791;hpb=4dab422a6537ce38b7817fbe7eec21940f41c463;p=thirdparty%2Fmdadm.git diff --git a/msg.c b/msg.c index 87d3b8d6..dc780b3e 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))