[PATCH openEuler-5.10 251/557] drm/panfrost: Check for error num after setting mask