]> 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)
commit0bbe1a34ffb4c919ce2a7d54052371ecc34c08ef
treeec943b76880598a53f207fbd5dd11d0f023a96b6
parent9516cc52f23b103376799e46ab6af54f1ec59569
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: 132db0c4dda6c ("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