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)
commit33ddca08bf9d68086e3e9ad6bef06ce881777894
tree287b2a273a775a9a5b417c5eaa675d3b52f585e2
parentc164b008b62720fda072b55c378d32da3260f271
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: 5887ad43ee02 ("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