drm/qxl: unset a pointer in sync_obj_unref
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 1 Apr 2014 13:15:47 +0000 (15:15 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Apr 2014 00:30:31 +0000 (10:30 +1000)
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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_ttm.c

index 29c02e0e857f1ef69f0bbbcc161ac087c7965583..d52c27527b9a638a09307f75a8bd4b91a56c7aef 100644 (file)
@@ -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)