[PATCH 6.17 311/507] crypto: starfive - Correctly handle return of sg_nents_for_len