summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Holman <bholman.devel@gmail.com>2021-09-29 15:15:16 -0400
committerJeff Moyer <jmoyer@redhat.com>2021-09-29 15:17:02 -0400
commita1bef69482289eb8b35608f1a3a4b36d7fb627e7 (patch)
tree43a919f2f605e03db503cceae2bc8c1695a13903
parentd892696468cb99d7d98b23b78bde942df0992d5a (diff)
downloadlibaio-a1bef69482289eb8b35608f1a3a4b36d7fb627e7.tar.gz
Fix struct io_iocb_vector padding for 32bit architectures
The io_iocb_vector structure definition is missing padding for @vec and @nr, which results in -EINVAL being returned from io_submit() on applications compiled for 32 bit architectures. Fix it. Signed-off-by: Brett Holman <bholman.devel@gmail.com> [JEM: add commit message; use PADDEDul for nr] Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
-rw-r--r--src/libaio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libaio.h b/src/libaio.h
index 4233303..0ceb2a9 100644
--- a/src/libaio.h
+++ b/src/libaio.h
@@ -116,8 +116,8 @@ struct io_iocb_common {
}; /* result code is the amount read or -'ve errno */
struct io_iocb_vector {
- const struct iovec *vec;
- int nr;
+ PADDEDptr(const struct iovec *vec, __pad1);
+ PADDEDul(nr, __pad2);
long long offset;
}; /* result code is the amount read or -'ve errno */