Skip to content
Snippets Groups Projects
Commit a1bef694 authored by Brett Holman's avatar Brett Holman Committed by Jeff Moyer
Browse files

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: default avatarBrett Holman <bholman.devel@gmail.com>
[JEM: add commit message; use PADDEDul for nr]
Signed-off-by: default avatarJeff Moyer <jmoyer@redhat.com>
parent d8926964
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment