[PATCH 5.18 845/879] gma500: fix an incorrect NULL check on list iterator