aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-add.c
diff options
context:
space:
mode:
authorSherry Sun <sherry.sun@nxp.com>2023-03-23 19:09:23 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-29 10:59:41 +0200
commit178e00f36f934a88682d96aa046c1f90cb6f83a7 (patch)
tree81df13e09754fd52220589ec0b0550937cbec0f5 /lib/crypto/mpi/mpi-add.c
parent9425914f3de6febbd6250395f56c8279676d9c3c (diff)
tty: serial: fsl_lpuart: fix crash in lpuart_uport_is_active
For serdev framework, tty->dev is a NULL pointer, lpuart_uport_is_active calling device_may_wakeup() may cause kernel NULL pointer crash, so here add the NULL pointer check before using it. Fixes: 4f5cb8c5e915 ("tty: serial: fsl_lpuart: enable wakeup source for lpuart") Cc: stable <stable@kernel.org> Signed-off-by: Sherry Sun <sherry.sun@nxp.com> Link: https://lore.kernel.org/r/20230323110923.24581-1-sherry.sun@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions