diff options
author | NeilBrown <neilb@suse.com> | 2015-08-05 06:50:34 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-08-05 06:51:25 +0200 |
commit | 598f8904acf640fdf6866cd06d1e9a65bd32982a (patch) | |
tree | e6d1aedfc3cce770e4e28765ea8a5f53eb2fa43d /raid6check.c | |
parent | Merge branch 'mdadm-3.3.x' (diff) | |
download | mdadm-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.c | 3 |
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; |