]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fixed up queue-3.18/tty-serial-atmel-fix-race-condition-tx-dma.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2017 13:37:25 +0000 (15:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2017 13:37:25 +0000 (15:37 +0200)
queue-3.18/tty-serial-atmel-fix-race-condition-tx-dma.patch

index a0e5f7cce5c4bb5ed67e5f76dfa4b9f7c4e343bd..07a02810bf222334b2c41c7155326b0b3989903e 100644 (file)
@@ -31,7 +31,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 +       * 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;
  }
  
  /*