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