serial: sh-sci: Do not free irqs that have already been freed
authorChris Brandt <chris.brandt@renesas.com>
Mon, 28 Jan 2019 18:25:56 +0000 (13:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2019 08:35:46 +0000 (09:35 +0100)
commit4d95987a32db53f3beca76f8c4c8309ef6a5f192
tree4130ce55185868cc657dae864311b5f4785b1899
parent824d17c57b0abbcb9128fb3f7327fae14761914b
serial: sh-sci: Do not free irqs that have already been freed

Since IRQs might be muxed on some parts, we need to pay attention when we
are freeing them.
Otherwise we get the ugly WARNING "Trying to free already-free IRQ 20".

Fixes: 628c534ae735 ("serial: sh-sci: Improve support for separate TEI and DRI interrupts")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c