genirq/debugfs: Add missing sanity checks to interrupt injection
authorThomas Gleixner <tglx@linutronix.de>
Fri, 6 Mar 2020 13:03:42 +0000 (14:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:11 +0000 (10:50 +0200)
commit3f3700c4697b6397d4bfcf6ebecd2a5f3221231c
tree367756b1f77bbfe5b5c44ae1ffa56d2083792e97
parent6ecc37daf64ebb8abe8a758921effb58616a3364
genirq/debugfs: Add missing sanity checks to interrupt injection

commit a740a423c36932695b01a3e920f697bc55b05fec upstream.

Interrupts cannot be injected when the interrupt is not activated and when
a replay is already in progress.

Fixes: 536e2e34bd00 ("genirq/debugfs: Triggering of interrupts from userspace")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20200306130623.500019114@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/irq/debugfs.c