Skip to content

Commit

Permalink
drm/qxl: unset a pointer in sync_obj_unref
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maarten Lankhorst authored and Dave Airlie committed Apr 2, 2014
1 parent bfe8b57 commit 41ccec3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/qxl/qxl_ttm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 41ccec3

Please sign in to comment.