]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - raid6check.c
sysfs: Avoid if and return on the same line
[thirdparty/mdadm.git] / raid6check.c
index cb8522e523a6e26610878a9921ef8fc971df32a3..ad7ffe7e6ac2e1414b12755b0231e439c6cc588f 100644 (file)
@@ -349,7 +349,8 @@ int check_stripes(struct mdinfo *info, int *source, unsigned long long *offsets,
        if (!tables_ready)
                make_tables();
 
-       posix_memalign((void**)&stripe_buf, 4096, raid_disks * chunk_size);
+       if (posix_memalign((void**)&stripe_buf, 4096, raid_disks * chunk_size) != 0)
+               exit(4);
        block_index_for_slot += 2;
        blocks += 2;
        blocks_page += 2;