]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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 19:02:38 +0000 (20:02 +0100)
commit05161b41e86efa755816e58d5e9461db4b71c5bf
treee5998c3dfd369ae9f54bbc94ca4273ba5c516cd4
parent9ed556075d98e278853daa6a06e9c3fc48b6cb78
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