]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: fsl_lpuart: use GFP_ATOMIC under spin lock
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 8 Sep 2016 15:03:24 +0000 (15:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 10:35:49 +0000 (12:35 +0200)
commitde92be496ee55592c0ec010c30b39b12270d3196
tree287b2a273a775a9a5b417c5eaa675d3b52f585e2
parent451757f0e86414b736679c70aaaeb7087a15e1d6
tty: serial: fsl_lpuart: use GFP_ATOMIC under spin lock

The function lpuart_start_rx_dma() is called from several
places, in some of which, such as lpuart_startup(), a lock
be held here, so we should use GFP_ATOMIC when a lock is held.

Fixes: 5e091770f9c5 ("tty: serial: fsl_lpuart: Use cyclic DMA for Rx")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c