[PATCH 6.12 059/826] crypto: cavium - Fix the if condition to exit loop after timeout