summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/drm_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_fence.c b/linux-core/drm_fence.c
index 441e7631..088c50d6 100644
--- a/linux-core/drm_fence.c
+++ b/linux-core/drm_fence.c
@@ -499,7 +499,7 @@ void drm_fence_manager_init(drm_device_t * dev)
int i;
- fm->lock = RW_LOCK_UNLOCKED;
+ rwlock_init(&fm->lock);
write_lock(&fm->lock);
fm->initialized = 0;
if (!fed)