From: Greg Kroah-Hartman Date: Thu, 20 Apr 2017 13:37:25 +0000 (+0200) Subject: fixed up queue-3.18/tty-serial-atmel-fix-race-condition-tx-dma.patch X-Git-Tag: v4.4.63~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27b4afb4a1f1231e4c03603f62ed44eb2b1a33d1;p=thirdparty%2Fkernel%2Fstable-queue.git fixed up queue-3.18/tty-serial-atmel-fix-race-condition-tx-dma.patch --- diff --git a/queue-3.18/tty-serial-atmel-fix-race-condition-tx-dma.patch b/queue-3.18/tty-serial-atmel-fix-race-condition-tx-dma.patch index a0e5f7cce5c..07a02810bf2 100644 --- a/queue-3.18/tty-serial-atmel-fix-race-condition-tx-dma.patch +++ b/queue-3.18/tty-serial-atmel-fix-race-condition-tx-dma.patch @@ -31,7 +31,7 @@ Signed-off-by: Greg Kroah-Hartman + * in uart_flush_buffer(), the xmit circular buffer has just + * been cleared, so we have to reset tx_len accordingly. + */ -+ atmel_port->tx_len = 0; ++ sg_dma_len(&atmel_port->sg_tx) = 0; } /*