diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2018-11-12 15:46:39 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2018-12-05 10:08:53 +0100 |
commit | 9da6e26c0aae3fda6017c1ecf5c8881f8dbc37df (patch) | |
tree | f5508c1cf472149239011c514789cde6788390fc /fs/nfsd | |
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 <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'fs/nfsd')
0 files changed, 0 insertions, 0 deletions