summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/qxl
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2014-04-01 15:15:47 +0200
committerDave Airlie <airlied@redhat.com>2014-04-02 10:30:31 +1000
commit41ccec352f3c823931a7d9d2a9c7880c14d7415a (patch)
tree8b37e19d79aed367cccff676698e182d33cab475 /drivers/gpu/drm/qxl
parentbfe8b5738a5d99156d83dc298729552ce82309d5 (diff)
downloadtalos-op-linux-41ccec352f3c823931a7d9d2a9c7880c14d7415a.tar.gz
talos-op-linux-41ccec352f3c823931a7d9d2a9c7880c14d7415a.zip
drm/qxl: unset a pointer in sync_obj_unref
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>
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r--drivers/gpu/drm/qxl/qxl_ttm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c
index 29c02e0e857f..d52c27527b9a 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)
OpenPOWER on IntegriCloud