[PATCH 2/7] [hrtimers] Fix possible use of NULL pointer inposix-timers

From: Thomas Gleixner
Date: Thu Jan 19 2006 - 21:54:25 EST



Fixup the conversion of posix-timers to hrtimers.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

---

kernel/posix-timers.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

a42e5a139db5c1759bc98729152618ed5b80410e
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
index 197208b..3b606d3 100644
--- a/kernel/posix-timers.c
+++ b/kernel/posix-timers.c
@@ -290,7 +290,8 @@ void do_schedule_next_timer(struct sigin
info->si_overrun = timr->it_overrun_last;
}

- unlock_timer(timr, flags);
+ if (timr)
+ unlock_timer(timr, flags);
}

int posix_timer_event(struct k_itimer *timr,int si_private)
--
1.0.8

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/