[PATCH 4.9 203/212] drm/vmwgfx: Fix two list_for_each loop exit tests