Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fixes from Ingo Molnar. * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: clocksource : Nomadik-mtu : fix missing irq initialization posix-timer: Don't call idr_find() with out-of-range ID
This commit is contained in:
@@ -639,6 +639,13 @@ static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags)
|
||||
{
|
||||
struct k_itimer *timr;
|
||||
|
||||
/*
|
||||
* timer_t could be any type >= int and we want to make sure any
|
||||
* @timer_id outside positive int range fails lookup.
|
||||
*/
|
||||
if ((unsigned long long)timer_id > INT_MAX)
|
||||
return NULL;
|
||||
|
||||
rcu_read_lock();
|
||||
timr = idr_find(&posix_timers_id, (int)timer_id);
|
||||
if (timr) {
|
||||
|
Reference in New Issue
Block a user