Skip to content

Commit

Permalink
drm/vmwgfx: Free user-space fence objects correctly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Nov 28, 2012
1 parent a82b8db commit 35f62a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 35f62a5

Please sign in to comment.