> From: Gagandeep Singh <[email protected]> > > If no next segment available the “for” loop will fail and it still > returns i+1 i.e. 2, which is wrong as it has filled only 1 buffer. > > Fixes: 7adf992fb9bf ("cryptodev: introduce CPU crypto API") > Cc: [email protected] > Cc: [email protected] > > Signed-off-by: Gagandeep Singh <[email protected]> @Fan: Could you please review this patch.

