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 be075bb3..6be6f218 100644
--- a/linux-core/drm_fence.c
+++ b/linux-core/drm_fence.c
@@ -495,7 +495,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)