Fix passing struct by value rather than by reference to syscall
Fixes #26521 CLA: trivial Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/26523)
This commit is contained in:
parent
0bdb4a67bd
commit
b6f2ff9363
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ static ossl_inline int io_getevents(aio_context_t ctx, long min, long max,
|
|||
ts32.tv_sec = (__kernel_long_t) timeout->tv_sec;
|
||||
ts32.tv_nsec = (__kernel_long_t) timeout->tv_nsec;
|
||||
|
||||
return syscall(__NR_io_getevents, ctx, min, max, events, ts32);
|
||||
return syscall(__NR_io_getevents, ctx, min, max, events, &ts32);
|
||||
} else {
|
||||
return syscall(__NR_io_getevents, ctx, min, max, events, NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue