diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2012-11-20 12:16:49 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-28 18:36:12 +1000 |
commit | 35f62a582947ab151c013eaa8cf339e00a5941ab (patch) | |
tree | 6f05bef0e8b79fe119d3929cf16688f605d7c464 /drivers/gpu/drm/vmwgfx | |
parent | a82b8db02f33b38a24fc3858968153940f7c4740 (diff) | |
download | op-kernel-dev-35f62a582947ab151c013eaa8cf339e00a5941ab.zip op-kernel-dev-35f62a582947ab151c013eaa8cf339e00a5941ab.tar.gz |
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')
-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 bc187fa..c62d20e 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. */ |