Commit dec8ba10 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Greg Kroah-Hartman

drm/qxl: unset a pointer in sync_obj_unref

commit 41ccec35 upstream.

This fixes a BUG_ON(bo->sync_obj != NULL); in ttm_bo_release_list.
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a741acc0
...@@ -431,6 +431,7 @@ static int qxl_sync_obj_flush(void *sync_obj) ...@@ -431,6 +431,7 @@ static int qxl_sync_obj_flush(void *sync_obj)
static void qxl_sync_obj_unref(void **sync_obj) static void qxl_sync_obj_unref(void **sync_obj)
{ {
*sync_obj = NULL;
} }
static void *qxl_sync_obj_ref(void *sync_obj) static void *qxl_sync_obj_ref(void *sync_obj)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment