Skip to content
Commit 474e941b authored by Richard Larocque's avatar Richard Larocque Committed by John Stultz
Browse files

alarmtimer: Lock k_itimer during timer callback



Locks the k_itimer's it_lock member when handling the alarm timer's
expiry callback.

The regular posix timers defined in posix-timers.c have this lock held
during timout processing because their callbacks are routed through
posix_timer_fn().  The alarm timers follow a different path, so they
ought to grab the lock somewhere else.

Cc: stable@vger.kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Sharvil Nanavati <sharvil@google.com>
Signed-off-by: default avatarRichard Larocque <rlarocque@google.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 265b81d2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment