[PATCH 5.17 025/298] firmware: stratix10-svc: fix a missing check on list iterator