summaryrefslogtreecommitdiff
path: root/kernel/irq
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2017-11-12 13:02:51 +0100
committerThomas Gleixner <tglx@linutronix.de>2017-11-12 13:15:14 +0100
commitd00a08cf9ee986ad6689ce8c6fd176aff679c106 (patch)
treead39bb22f22d5613e7c40b5e39552c334192dd46 /kernel/irq
parent9dc505d6df5c607a4ea088b5f1907540079a9859 (diff)
irq/work: Use llist_for_each_entry_safe
The llist_for_each_entry() loop in irq_work_run_list() is unsafe because once the works PENDING bit is cleared it can be requeued on another CPU. Use llist_for_each_entry_safe() instead. Fixes: 16c0890dc66d ("irq/work: Don't reinvent the wheel but use existing llist API") Reported-by:Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Frederic Weisbecker <frederic@kernel.org> Cc: Byungchul Park <byungchul.park@lge.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Petri Latvala <petri.latvala@intel.com> Link: http://lkml.kernel.org/r/151027307351.14762.4611888896020658384@mail.alporthouse.com
Diffstat (limited to 'kernel/irq')
0 files changed, 0 insertions, 0 deletions