[PATCH 4.14 211/228] drm/vmwgfx: Fix two list_for_each loop exit tests