diff options
author | Maarten Lankhorst <[email protected]> | 2014-04-01 15:15:47 +0200 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-04-02 10:30:31 +1000 |
commit | 41ccec352f3c823931a7d9d2a9c7880c14d7415a (patch) | |
tree | 8b37e19d79aed367cccff676698e182d33cab475 | |
parent | bfe8b5738a5d99156d83dc298729552ce82309d5 (diff) |
drm/qxl: unset a pointer in sync_obj_unref
This fixes a BUG_ON(bo->sync_obj != NULL); in ttm_bo_release_list.
Cc: [email protected] #v3.10+
Signed-off-by: Maarten Lankhorst <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_ttm.c | 1 |
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) |