[PATCH 5.4 295/411] firmware: stratix10-svc: fix a missing check on list iterator