On Mon, Feb 27, 2023 at 01:17:51AM -0800, Daniil Dulov wrote: > When seg is equal to MAX_ARRAY, the loop should break, otherwise > it will result in out of range access. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Fixes: b9be6f18cf9e ("rdma/siw: transmit path") > Signed-off-by: Daniil Dulov <d.dulov@xxxxxxxxxx> > --- > drivers/infiniband/sw/siw/siw_qp_tx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, applied and changed as Bernard suggested.