diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2012-02-09 19:56:42 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-13 16:01:32 +0400 |
commit | 6b82ef50d8617f3fcd51dda9d89d973fe3bc65b8 (patch) | |
tree | 960fa96955cadb1597f50f8c4138cf27b9229480 /drivers/gpu/drm/vmwgfx/vmwgfx_fence.h | |
parent | 8b7de6aa84682a3396544fd88cd457f95484573a (diff) | |
download | linux-6b82ef50d8617f3fcd51dda9d89d973fe3bc65b8.tar.xz |
vmwgfx: Clean up pending event references to struct drm_file objects on close
Pending events may have stale pointer references to struct drm_file objects
after a file has been closed, but before the event is supposed to be
attached to the drm file. Remove such events on file close.
Tested with "modetest".
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_fence.h')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fence.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.h b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.h index 0854a2096b55..8767fc13265d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.h @@ -109,5 +109,8 @@ extern int vmw_fence_obj_unref_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv); extern int vmw_fence_event_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv); +extern void vmw_event_fence_fpriv_gone(struct vmw_fence_manager *fman, + struct list_head *event_list); + #endif /* _VMWGFX_FENCE_H_ */ |