]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: 21285: fix lockup on open
authorRussell King <rmk+kernel@armlinux.org.uk>
Sun, 18 Oct 2020 08:42:04 +0000 (09:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2020 12:39:14 +0000 (13:39 +0100)
commit8680700c49cc7cc8744c83902aa0fee4ce425d9a
treecfdd77e323d72fa64e25c2114bc4253f79e30f8b
parent68ed2672b8fdb9454c449f573990714135c93adc
tty: serial: 21285: fix lockup on open

Commit d33645f22388 ("tty: serial: 21285: stop using the unused[]
variable from struct uart_port") introduced a bug which stops the
transmit interrupt being disabled when there are no characters to
transmit - disabling the transmit interrupt at the interrupt controller
is the only way to stop an interrupt storm. If this interrupt is not
disabled when there are no transmit characters, we end up with an
interrupt storm which prevents the machine making forward progress.

Fixes: d33645f22388 ("tty: serial: 21285: stop using the unused[] variable from struct uart_port")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/E1kU4GS-0006lE-OO@rmk-PC.armlinux.org.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/21285.c