summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-11-29 20:21:53 +0000
committerGerrit Code Review <review@openstack.org>2016-11-29 20:21:53 +0000
commitfff899253eacda7f4fd6f576ab4e73dd8ea61925 (patch)
tree6e7b592625ccabbe7206a34b0db8ade4b52523ff
parent0a79a4889eb8e48737b40af6c34d8d519ba6aff3 (diff)
parentbdc8503bb2e24d7f70f13503dc440d8f9276268e (diff)
Merge "Fix posix_memalign handling"
-rw-r--r--src/erasurecode_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/erasurecode_helpers.c b/src/erasurecode_helpers.c
index 5068b27..40db93c 100644
--- a/src/erasurecode_helpers.c
+++ b/src/erasurecode_helpers.c
@@ -65,7 +65,7 @@ void *get_aligned_buffer16(int size)
65 * Ensure all memory is aligned to 16-byte boundaries 65 * Ensure all memory is aligned to 16-byte boundaries
66 * to support 128-bit operations 66 * to support 128-bit operations
67 */ 67 */
68 if (posix_memalign(&buf, 16, size) < 0) { 68 if (posix_memalign(&buf, 16, size) != 0) {
69 return NULL; 69 return NULL;
70 } 70 }
71 71