File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -251,15 +251,16 @@ static void frontbuffer_retire(struct i915_active *ref)
251
251
static void frontbuffer_release (struct kref * ref )
252
252
__releases (& intel_bo_to_i915 (front - > obj )- > display .fb_tracking .lock )
253
253
{
254
- struct intel_frontbuffer * front =
254
+ struct intel_frontbuffer * ret , * front =
255
255
container_of (ref , typeof (* front ), ref );
256
256
struct drm_i915_gem_object * obj = front -> obj ;
257
257
258
258
drm_WARN_ON (& intel_bo_to_i915 (obj )-> drm , atomic_read (& front -> bits ));
259
259
260
260
i915_ggtt_clear_scanout (obj );
261
261
262
- i915_gem_object_set_frontbuffer (obj , NULL );
262
+ ret = i915_gem_object_set_frontbuffer (obj , NULL );
263
+ drm_WARN_ON (& intel_bo_to_i915 (obj )-> drm , ret );
263
264
spin_unlock (& intel_bo_to_i915 (obj )-> display .fb_tracking .lock );
264
265
265
266
i915_active_fini (& front -> write );
You can’t perform that action at this time.
0 commit comments