]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: fsl_lpuart: fix return value checking
authorMichael Walle <michael@walle.cc>
Wed, 25 Mar 2020 09:06:58 +0000 (10:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2020 14:34:05 +0000 (15:34 +0100)
commit31c12a83d8f9318e4c44793c71732a9581448c08
treeec943b76880598a53f207fbd5dd11d0f023a96b6
parent7ed1954fd4ca646fb08483236f10828e76f1efac
tty: serial: fsl_lpuart: fix return value checking

The return value of lpuart_dma_tx_request() is an negative errno on
failure and zero on success.

Fixes: 92e83f5125a01 ("tty: serial: fsl_lpuart: fix DMA operation when using IOMMU")
Reported-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Link: https://lore.kernel.org/r/20200325090658.25967-2-michael@walle.cc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c