diff options
author | Thomas Hellstrom <[email protected]> | 2018-11-12 15:46:39 +0100 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2018-12-05 10:08:53 +0100 |
commit | 9da6e26c0aae3fda6017c1ecf5c8881f8dbc37df (patch) | |
tree | f5508c1cf472149239011c514789cde6788390fc /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 9d9486e43728cd513e10ed3dd54e156c8ab7bd2a (diff) |
drm/vmwgfx: Fix a layout race condition
This fixes a layout update race condition. We make sure
the crtc mutex is locked before we dereference crtc->state. Otherwise the
state might change under us.
Since now we're already holding the crtc mutexes when reading the gui
coordinates, protect them with the crtc mutexes rather than with the
requested_layout mutex.
Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Deepak Rawat <[email protected]>
Reviewed-by: Sinclair Yeh <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions