drm/vmwgfx: Free user-space fence objects correctly
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 20 Nov 2012 12:16:49 +0000 (12:16 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Nov 2012 08:36:12 +0000 (18:36 +1000)
They need to be freed after an rcu grace period.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c

index bc187fa..c62d20e 100644 (file)
@@ -537,7 +537,7 @@ static void vmw_user_fence_destroy(struct vmw_fence_obj *fence)
                container_of(fence, struct vmw_user_fence, fence);
        struct vmw_fence_manager *fman = fence->fman;
 
-       kfree(ufence);
+       ttm_base_object_kfree(ufence, base);
        /*
         * Free kernel space accounting.
         */