]> git.baikalelectronics.ru Git - kernel.git/commit
vmwgfx: Clean up pending event references to struct drm_file objects on close
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 9 Feb 2012 15:56:42 +0000 (16:56 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 13 Feb 2012 12:01:32 +0000 (12:01 +0000)
commit605ba895c3ad56c2d477026894f9db66b791fecb
tree960fa96955cadb1597f50f8c4138cf27b9229480
parentfa759b78f972eb567698b53057e35777f92162fb
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>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
drivers/gpu/drm/vmwgfx/vmwgfx_fence.h