All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/qxl: unset a pointer in sync_obj_unref
@ 2014-04-01 13:15 Maarten Lankhorst
  0 siblings, 0 replies; only message in thread
From: Maarten Lankhorst @ 2014-04-01 13:15 UTC (permalink / raw)
  To: Dave Airlie; +Cc: dri-devel@lists.freedesktop.org

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

Cc: stable@vger.kernel.org #v3.10+
     
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
---
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c
index c7e7e6590c2b..c82c1d6a965a 100644
--- a/drivers/gpu/drm/qxl/qxl_ttm.c
+++ b/drivers/gpu/drm/qxl/qxl_ttm.c
@@ -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)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-01 13:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 13:15 [PATCH] drm/qxl: unset a pointer in sync_obj_unref Maarten Lankhorst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.