diff options
author | Hangyu Hua <[email protected]> | 2022-05-18 14:58:56 +0800 |
---|---|---|
committer | Robert Foss <[email protected]> | 2022-07-04 20:38:34 +0200 |
commit | 21779cc21c732c5eff8ea1624be6590450baa30f (patch) | |
tree | 7aadcdbde2d3cbe1dc72edad109251f55abc6410 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f0dce5c4fdaf9e98dd2755ffb1363822854b6287 (diff) |
drm: bridge: sii8620: fix possible off-by-one
The next call to sii8620_burst_get_tx_buf will result in off-by-one
When ctx->burst.tx_count + size == ARRAY_SIZE(ctx->burst.tx_buf). The same
thing happens in sii8620_burst_get_rx_buf.
This patch also change tx_count and tx_buf to rx_count and rx_buf in
sii8620_burst_get_rx_buf. It is unreasonable to check tx_buf's size and
use rx_buf.
Fixes: e19e9c692f81 ("drm/bridge/sii8620: add support for burst eMSC transmissions")
Signed-off-by: Hangyu Hua <[email protected]>
Reviewed-by: Andrzej Hajda <[email protected]>
Signed-off-by: Robert Foss <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions