Skip to contentSkip to conversation

drm/qxl: unset a pointer in sync_obj_unref

PATCH New Maarten Lankhorst 1 participant 1 message Apr 1, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/qxl: unset a pointer in sync_obj_unref

This fixes a BUG_ON(bo->sync_obj != NULL); in ttm_bo_release_list.

---

drivers/gpu/drm/qxl/qxl_ttm.c +1 -0
index c7e7e6590c2b..c82c1d6a965a 100644
@@ -433,6 +433,7 @@ static int qxl_sync_obj_flush(void *sync_obj)
 
 static void qxl_sync_obj_unref(void **sync_obj)
 {
+	*sync_obj = NULL;
 }
 
 static void *qxl_sync_obj_ref(void *sync_obj)