Thread (4 messages) 4 messages, 4 authors, 2016-06-05

Re: [PATCH] tty: serial: msm: Don't read off end of tx fifo

From: Andy Gross <hidden>
Date: 2016-06-05 18:44:50
Also in: linux-arm-msm, lkml, stable

On Thu, Jun 02, 2016 at 05:48:28PM -0700, Bjorn Andersson wrote:
For dm uarts in pio mode tx data is transferred to the fifo register 4
bytes at a time, but care is not taken when these 4 bytes spans the end
of the xmit buffer so the loop might read up to 3 bytes past the buffer
and then skip the actual data at the beginning of the buffer.

Fix this by, analogous to the DMA case, make sure the chunk doesn't
wrap the xmit buffer.

Fixes: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support")
Cc: Andy Gross <redacted>
Cc: Ivan Ivanov <redacted>
Cc: Stephen Boyd <redacted>
Cc: stable@vger.kernel.org
Reported-by: Frank Rowand <redacted>
Reported-by: Nicolas Dechesne <redacted>
Signed-off-by: Bjorn Andersson <redacted>
Acked-by: Andy Gross <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help