]> 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)
commit99543dd846413fe0d999f56e6d94b153395be058
tree80630ede0f485ff5dcfb7aca84859b25e2e5c5ad
parent1c0b868d29365b5e6060c6d74d1799bcd1f5e8af
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: c9bff8879c729 ("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