diff options
| author | Sherry Sun <[email protected]> | 2023-03-23 11:09:23 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-03-29 08:59:41 +0000 |
| commit | 178e00f36f934a88682d96aa046c1f90cb6f83a7 (patch) | |
| tree | 81df13e09754fd52220589ec0b0550937cbec0f5 /tools/perf/scripts/python/compaction-times.py | |
| parent | tty: serial: fsl_lpuart: avoid checking for transfer complete when UARTCTRL_S... (diff) | |
| download | kernel-178e00f36f934a88682d96aa046c1f90cb6f83a7.tar.gz kernel-178e00f36f934a88682d96aa046c1f90cb6f83a7.zip | |
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 <[email protected]>
Signed-off-by: Sherry Sun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions
