summaryrefslogtreecommitdiffstats
path: root/bitmap.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-02-02 11:09:09 +1100
committerNeilBrown <neilb@suse.de>2009-02-02 11:09:09 +1100
commit6c40598f598874d1d4c2c4d0da0c2a9b873d768d (patch)
tree5f05871358e150e7173e84ed6b3c2e42066fbe52 /bitmap.c
parentcaf8d2317519df27b805919c3878fe3c3acc6923 (diff)
parentb47dff6675026053dc574f305df570d79754484e (diff)
downloadmdadm-6c40598f598874d1d4c2c4d0da0c2a9b873d768d.tar.gz
mdadm-6c40598f598874d1d4c2c4d0da0c2a9b873d768d.tar.xz
mdadm-6c40598f598874d1d4c2c4d0da0c2a9b873d768d.zip
Merge branch 'master' into devel-3.0
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitmap.c b/bitmap.c
index 1810166..b9bbaeb 100644
--- 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 --