[PATCH 5.18 029/339] firmware: stratix10-svc: fix a missing check on list iterator