[PATCH 6.6 668/676] drm/sti: avoid potential dereference of error pointers in sti_gdp_atomic_check