diff options
author | Thomas Gleixner | 2019-07-28 15:12:52 +0200 |
---|---|---|
committer | Thomas Gleixner | 2019-07-31 00:09:09 +0200 |
commit | a9446a906f52292c52ecbd5be78eaa4d8395756c (patch) | |
tree | 4790fb898f84c8ab47afcc3172e6a523fb0f8d29 /Documentation/pcmcia | |
parent | 629f8205a6cc63d2e8e30956bad958a3507d018f (diff) |
lib/vdso/32: Remove inconsistent NULL pointer checks
The 32bit variants of vdso_clock_gettime()/getres() have a NULL pointer
check for the timespec pointer. That's inconsistent vs. 64bit.
But the vdso implementation will never be consistent versus the syscall
because the only case which it can handle is NULL. Any other invalid
pointer will cause a segfault. So special casing NULL is not really useful.
Remove it along with the superflouos syscall fallback invocation as that
will return -EFAULT anyway. That also gets rid of the dubious typecast
which only works because the pointer is NULL.
Fixes: 00b26474c2f1 ("lib/vdso: Provide generic VDSO implementation")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20190728131648.587523358@linutronix.de
Diffstat (limited to 'Documentation/pcmcia')
0 files changed, 0 insertions, 0 deletions