[PATCH 5.4 263/411] gma500: fix an incorrect NULL check on list iterator