diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2012-11-20 16:16:49 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-28 12:36:12 +0400 |
commit | 35f62a582947ab151c013eaa8cf339e00a5941ab (patch) | |
tree | 6f05bef0e8b79fe119d3929cf16688f605d7c464 /drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | |
parent | a82b8db02f33b38a24fc3858968153940f7c4740 (diff) | |
download | linux-35f62a582947ab151c013eaa8cf339e00a5941ab.tar.xz |
drm/vmwgfx: Free user-space fence objects correctly
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>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_fence.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c index bc187fafd58c..c62d20e8a6f1 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c @@ -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. */ |