diff options
author | Nikita Yushchenko <nikita.yoush@cogentembedded.com> | 2016-12-04 18:49:28 +0300 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2017-05-31 13:41:22 -0700 |
commit | 3348e452f7710844f083bdb1f55f4c983612e89b (patch) | |
tree | b6ba057d588432f3d2f42e76221d73864dc57a22 /arch/s390/boot/compressed/misc.c | |
parent | f9fc0f2f0ab206a613230f81c751f683072cced1 (diff) |
tty: serial: fsl_lpuart: fix del_timer_sync() vs timer routine deadlock
Problem found via lockdep:
- lpuart_set_termios() calls del_timer_sync(&sport->lpuart_timer) while
holding sport->port.lock
- sport->lpuart_timer routine is lpuart_timer_func() that calls
lpuart_copy_rx_to_tty() that acquires same lock.
To fix, move Rx DMA stopping out of lock, as it already is in other places
in the same file.
While at it, also make Rx DMA start/stop code to look the same is in
other places in the same file.
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Tested-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 54a44d54be3a7394ebea42bbffd67819e0f3f89a)
Diffstat (limited to 'arch/s390/boot/compressed/misc.c')
0 files changed, 0 insertions, 0 deletions