 +	memcpy(dma->tx_buf, xmit->buf + xmit->tail, chunk1);
 +	
 +	chunk2 = CIRC_CNT(head, xmit->tail, UART_XMIT_SIZE) - chunk1;
-+	if(chunk2 > 0) {
++	if (chunk2 > 0) {
 +		memcpy(dma->tx_buf + chunk1, xmit->buf, chunk2);
 +	}
 +	dma->tx_size = chunk1 + chunk2;

 	size_t			rx_size;
 	size_t			tx_size;
diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
index bfa1a857f3ff..466e976308de 100644
--- a/drivers/tty/serial/8250/8250_dma.c
+++ b/drivers/tty/serial/8250/8250_dma.c
@@ -8,6 +8,7 @@

From 1a7d521d3b9191dfa4efeaa78c7f53ec2a70601b Mon Sep 17 00:00:00 2001
From: Ferry Toth <ftoth@exalondelft.nl>
Date: Sat, 17 Mar 2018 13:54:18 +0100
Subject: [PATCH] serial: 8250_dma: use linear buffer for transmit
