genirq: Sanitize state handling in check_irq_resend()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 6 Mar 2020 13:03:46 +0000 (14:03 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 8 Mar 2020 10:06:41 +0000 (11:06 +0100)
commitda90921acc62c71d27729ae211ccfda5370bf75b
treefb26cfaf7dd63e0092d50824c2b2b8af93056b53
parent1f85b1f5e1f5541272abedc19ba7b6c5b564c228
genirq: Sanitize state handling in check_irq_resend()

The code sets IRQS_REPLAY unconditionally whether the resend happens or
not. That doesn't have bad side effects right now, but inconsistent state
is always a latent source of problems.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lkml.kernel.org/r/20200306130623.882129117@linutronix.de
kernel/irq/resend.c