]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - kernel/time/posix-cpu-timers.c
posix-cpu-timers: Provide task validation functions
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:08:48 +0000 (21:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:24 +0000 (11:50 +0200)
commit6ae40e3fdcd33a6ff3c490b9302d6a1861093f65
treea70ff8d85814eb6a81ec56e3fe8a462f6810b63e
parenta42e43c3de344bd2fa2e635bf3ffd4d9be73cf82
posix-cpu-timers: Provide task validation functions

The code contains three slightly different copies of validating whether a
given clock resolves to a valid task and whether the current caller has
permissions to access it.

Create central functions. Replace check_clock() as a first step and rename
it to something sensible.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190821192919.326097175@linutronix.de
kernel/time/posix-cpu-timers.c