[PATCH 5.17 0093/1126] cifs: fix incorrect use of list iterator after the loop