drm/ttm: Fixed a read/write lock imbalance
Subsystems (4)
PATCH 1/1 drm/ttm: Fixed a read/write lock imbalance
From: Thomas Hellstrom <[email protected]>
In ttm_write_lock(), the uninterruptible path should call __ttm_write_lock() not __ttm_read_lock(). This fixes a vmwgfx hang on F23 start up.
syeh: Extracted this from one of Thomas' internal patches.
Cc <[email protected]>
Signed-off-by Thomas Hellstrom <[email protected]>
Reviewed-by Sinclair Yeh <[email protected]>
--- drivers/gpu/drm/ttm/ttm_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_lock.c +1 -1
@@ -180,7 +180,7 @@ int ttm_write_lock(struct ttm_lock *lock, bool interruptible)spin_unlock (&lock->lock); } }else -wait_event (lock->queue,__ttm_read_lock (lock)); +wait_event (lock->queue,__ttm_write_lock (lock));return ret; }
Signature · 1 line
1.9.1