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)
commit401fb66a355eb0f22096cf26864324f8e63c7d78
tree80630ede0f485ff5dcfb7aca84859b25e2e5c5ad
parent9361ebfbb79fd1bc8594a487c01ad52cdaa391ea
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: 9d7ee0e28da59 ("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