Re: [PATCH] drm: bridge: sii8620: fix possible off-by-one

2022-07-04 Thread Robert Foss
On Thu, 23 Jun 2022 at 04:55, Hangyu Hua wrote: > > On 2022/5/18 15:57, Andrzej Hajda wrote: > > > > > > On 18.05.2022 08:58, Hangyu Hua wrote: > >> 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 > >> s

Re: [PATCH] drm: bridge: sii8620: fix possible off-by-one

2022-06-22 Thread Hangyu Hua
On 2022/5/18 15:57, Andrzej Hajda wrote: On 18.05.2022 08:58, Hangyu Hua wrote: 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

Re: [PATCH] drm: bridge: sii8620: fix possible off-by-one

2022-05-18 Thread Andrzej Hajda
On 18.05.2022 08:58, Hangyu Hua wrote: 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

[PATCH] drm: bridge: sii8620: fix possible off-by-one

2022-05-17 Thread Hangyu Hua
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 unreasonabl