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 bc187fafd58cf4a4f453ff6a53675de4e41c2fb2..c62d20e8a6f169cce1173c849b42f160c55a4f39 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.
         */