diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2020-11-28 15:39:46 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-01-28 15:20:18 +0300 |
commit | 1ce53e2c2ac069e7b3c400a427002a70deb4a916 (patch) | |
tree | f980a8c689030b609996f9362a3f93ea54ccebe4 /lib/mpi/mpi-cmp.c | |
parent | 997acaf6b4b59c6a9c259740312a69ea549cc684 (diff) | |
download | linux-1ce53e2c2ac069e7b3c400a427002a70deb4a916.tar.xz |
futex: Change utime parameter to be 'const ... *'
futex(2) says that 'utime' is a pointer to 'const'. The implementation
doesn't use 'const'; however, it _never_ modifies the contents of utime.
- futex() either uses 'utime' as a pointer to struct or as a 'u32'.
- In case it's used as a 'u32', it makes a copy of it, and of course it is
not dereferenced.
- In case it's used as a 'struct __kernel_timespec __user *', the pointer
is not dereferenced inside the futex() definition, and it is only passed
to a function: get_timespec64(), which accepts a 'const struct
__kernel_timespec __user *'.
[ tglx: Make the same change to the compat syscall and fixup the prototypes. ]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201128123945.4592-1-alx.manpages@gmail.com
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions