diff options
author | Aaron Brice <aaron.brice@datasoft.com> | 2016-10-06 15:13:04 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-27 16:41:56 +0200 |
commit | d704b2d32c39c256dea659e142a31b875a13c63b (patch) | |
tree | e104411d0b6a56d00ed2f6a8b274ce95292e5d66 /mm/util.c | |
parent | f00a7c57569db04633818bc5e0c0e35d62733b02 (diff) | |
download | linux-d704b2d32c39c256dea659e142a31b875a13c63b.tar.bz2 |
tty: serial: fsl_lpuart: Fix Tx DMA edge case
In the case where head == 0 on the circular buffer, there should be one
DMA buffer, not two. The second zero-length buffer would break the
lpuart driver, transfer would never complete.
Signed-off-by: Aaron Brice <aaron.brice@datasoft.com>
Acked-by: Stefan Agner <stefan@agner.ch>
Tested-by: Stefan Agner <stefan@agner.ch>
Tested-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions