]> git.baikalelectronics.ru Git - kernel.git/commit
fsl_lpuart: Don't enable interrupts too early
authorIndan Zupancic <Indan.Zupancic@mep-info.com>
Thu, 5 May 2022 11:47:50 +0000 (13:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 21:00:21 +0000 (23:00 +0200)
commitfc874474716b5be7d5a6e7d15d22c4aacedd669c
tree80630ede0f485ff5dcfb7aca84859b25e2e5c5ad
parent3ff3a0d701c97d229929353263bd746b74e7a075
fsl_lpuart: Don't enable interrupts too early

If an irq is pending when devm_request_irq() is called, the irq
handler will cause a NULL pointer access because initialisation
is not done yet.

Fixes: 1fc4ac172ca38 ("tty: serial: lpuart: avoid report NULL interrupt")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Indan Zupancic <Indan.Zupancic@mep-info.com>
Link: https://lore.kernel.org/r/20220505114750.45423-1-Indan.Zupancic@mep-info.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c