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>
Tue, 12 Feb 2019 18:47:26 +0000 (19:47 +0100)
commitc287265bfa65deff9f3af30f048efa87030bb425
treee679a5b3ad274b1337825f098b9c7826d7b87489
parent57a3ef4dd520e089858484cd68a71c1858600436
serial: sh-sci: Do not free irqs that have already been freed

commit 4d95987a32db53f3beca76f8c4c8309ef6a5f192 upstream.

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