[PATCH] compositor-drm: Release the correct buffer in drm_output_release_fb

Jason Ekstrand jason at jlekstrand.net
Thu Nov 14 18:52:35 PST 2013


---
My knowledge of the DRM backend is rather small, so I don't know if this is
really the right fix.  I hit this when the the mode fails to set.  See also
compositor-drm.c:606

 src/compositor-drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index d4fc871..fc28a7b 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -412,7 +412,7 @@ drm_output_release_fb(struct drm_output *output, struct drm_fb *fb)
 			gbm_bo_destroy(fb->bo);
 		else
 			gbm_surface_release_buffer(output->surface,
-						   output->current->bo);
+						   fb->bo);
 	}
 }
 
-- 
1.8.3.1



More information about the wayland-devel mailing list