diff options
| author | Bjorn Andersson <[email protected]> | 2016-06-02 17:48:28 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-06-25 10:23:54 -0700 |
| commit | 30acf549ca1e81859a67590ab9ecfce3d1050a0b (patch) | |
| tree | bf665f7341a6b98355a65d127b14efc5e3aadb81 /tools/perf/scripts/python | |
| parent | 002eb41f303e007011aecba25ea6de25a4ed475f (diff) | |
tty: serial: msm: Don't read off end of tx fifo
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: Ivan Ivanov <[email protected]>
Cc: [email protected]
Reported-by: Frank Rowand <[email protected]>
Reported-by: Nicolas Dechesne <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Acked-by: Andy Gross <[email protected]>
Tested-by: Frank Rowand <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions