Variable "now" seems to be genuinely used unintialized
if branch

        if (CPUCLOCK_PERTHREAD(timer->it_clock)) {

is not taken and branch

        if (unlikely(sighand == NULL)) {

is taken.

I don't know this code to judge what should be done, could someone
please look at it?

Signed-off-by: Alexey Dobriyan <adobri...@gmail.com>
---

 kernel/time/posix-cpu-timers.c |    1 +
 1 file changed, 1 insertion(+)

--- a/kernel/time/posix-cpu-timers.c
+++ b/kernel/time/posix-cpu-timers.c
@@ -777,6 +777,7 @@ static void posix_cpu_timer_get(struct k_itimer *timer, 
struct itimerspec *itp)
                        timer->it.cpu.expires = 0;
                        sample_to_timespec(timer->it_clock, 
timer->it.cpu.expires,
                                           &itp->it_value);
+                       return;
                } else {
                        cpu_timer_sample_group(timer->it_clock, p, &now);
                        unlock_task_sighand(p, &flags);

Reply via email to