summaryrefslogtreecommitdiffstats
path: root/raid6check.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2015-08-05 06:50:34 +0200
committerNeilBrown <neilb@suse.com>2015-08-05 06:51:25 +0200
commit598f8904acf640fdf6866cd06d1e9a65bd32982a (patch)
treee6d1aedfc3cce770e4e28765ea8a5f53eb2fa43d /raid6check.c
parentMerge branch 'mdadm-3.3.x' (diff)
downloadmdadm-598f8904acf640fdf6866cd06d1e9a65bd32982a.tar.xz
mdadm-598f8904acf640fdf6866cd06d1e9a65bd32982a.zip
raid6check: don't ignore return value from posix_memalign.
Compilers don't like that. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'raid6check.c')
-rw-r--r--raid6check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/raid6check.c b/raid6check.c
index cb8522e5..ad7ffe7e 100644
--- a/raid6check.c
+++ b/raid6check.c
@@ -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;