[PATCH openEuler-5.10-LTS 394/427] gma500: fix an incorrect NULL check on list iterator