Initialize rwlock using rwlock_init to appease lockdep validator.
parent
6238ebee21
commit
2d1de1fc6b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue