diff options
author | NeilBrown <neilb@suse.de> | 2009-02-02 01:09:09 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-02-02 01:09:09 +0100 |
commit | 6c40598f598874d1d4c2c4d0da0c2a9b873d768d (patch) | |
tree | 5f05871358e150e7173e84ed6b3c2e42066fbe52 /bitmap.c | |
parent | imsm: fix failed disks are allowed back into the container (diff) | |
parent | Fix possible crash if bitmap metadata is bad. (diff) | |
download | mdadm-6c40598f598874d1d4c2c4d0da0c2a9b873d768d.tar.xz mdadm-6c40598f598874d1d4c2c4d0da0c2a9b873d768d.zip |
Merge branch 'master' into devel-3.0
Diffstat (limited to 'bitmap.c')
-rw-r--r-- | bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 -- |