summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-01-27 04:48:28 +0000
committerNeil Brown <neilb@suse.de>2006-01-27 04:48:28 +0000
commit29e766a5f4459b012a09d0243040ec2e0205deea (patch)
treea6e1b0acad54a5b9d1beff5f17a117f192069f9c /super0.c
parent838acbc2724c57f9dc1facec201d20f09a81d375 (diff)
downloadmdadm-29e766a5f4459b012a09d0243040ec2e0205deea.tar.gz
mdadm-29e766a5f4459b012a09d0243040ec2e0205deea.tar.xz
mdadm-29e766a5f4459b012a09d0243040ec2e0205deea.zip
Minor fixes
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super0.c b/super0.c
index 64acf1a..2884855 100644
--- a/super0.c
+++ b/super0.c
@@ -691,7 +691,7 @@ static int add_internal_bitmap0(struct supertype *st, void *sbv, int chunk, int
sb->state |= (1<<MD_SB_BITMAP_PRESENT);
- memset(bms, sizeof(*bms), 0);
+ memset(bms, 0, sizeof(*bms));
bms->magic = __cpu_to_le32(BITMAP_MAGIC);
bms->version = __cpu_to_le32(major);
uuid_from_super0((int*)bms->uuid, sb);