posix-timers: Set k_itimer:: It_signal to NULL on exit()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 25 Apr 2023 18:49:06 +0000 (20:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 18 Jun 2023 20:41:49 +0000 (22:41 +0200)
commit72786ff23d5acb7bf3e2535831b2f1dc55c7f44e
tree74c4260bc0aa455f34096127ee6579b47b45cfd4
parent028cf5eaa12846c4e32104132ff70ca1cd6f5943
posix-timers: Set k_itimer:: It_signal to NULL on exit()

Technically it's not required to set k_itimer::it_signal to NULL on exit()
because there is no other thread anymore which could lookup the timer
concurrently.

Set it to NULL for consistency sake and add a comment to that effect.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20230425183313.196462644@linutronix.de
kernel/time/posix-timers.c