diff options
| author | Helge Deller <[email protected]> | 2022-08-01 15:36:15 +0000 |
|---|---|---|
| committer | Helge Deller <[email protected]> | 2022-08-01 16:43:24 +0000 |
| commit | 6431e92fc827bdd2d28f79150d90415ba9ce0d21 (patch) | |
| tree | 63e01900815184251b074af9884ef8fa384336f8 /drivers/fpga/machxo2-spi.c | |
| parent | parisc: Drop zero variable initialisations in mm/init.c (diff) | |
| download | kernel-6431e92fc827bdd2d28f79150d90415ba9ce0d21.tar.gz kernel-6431e92fc827bdd2d28f79150d90415ba9ce0d21.zip | |
parisc: io_pgetevents_time64() needs compat syscall in 32-bit compat mode
For all syscalls in 32-bit compat mode on 64-bit kernels the upper
32-bits of the 64-bit registers are zeroed out, so a negative 32-bit
signed value will show up as positive 64-bit signed value.
This behaviour breaks the io_pgetevents_time64() syscall which expects
signed 64-bit values for the "min_nr" and "nr" parameters.
Fix this by switching to the compat_sys_io_pgetevents_time64() syscall,
which uses "compat_long_t" types for those parameters.
Cc: <[email protected]> # v5.1+
Signed-off-by: Helge Deller <[email protected]>
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions
