]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - bitmap.c
wait_for improvement.
[thirdparty/mdadm.git] / bitmap.c
index 18101664fa1728e997bdb27826141d5a1f40cca7..b9bbaebdf09bfdaa8981314b280db33156ff2c42 100644 (file)
--- a/bitmap.c
+++ b/bitmap.c
@@ -163,7 +163,7 @@ bitmap_info_t *bitmap_fd_read(int fd, int brief)
 
        sb_le_to_cpu(&info->sb); /* convert superblock to CPU byte ordering */
 
-       if (brief || info->sb.sync_size == 0)
+       if (brief || info->sb.sync_size == 0 || info->sb.chunksize == 0)
                goto out;
 
        /* read the rest of the file counting total bits and dirty bits --