aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/locking.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/locking.c')
-rw-r--r--litmus/locking.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/litmus/locking.c b/litmus/locking.c
index 0c1aa6aa40b7..5897beb941cf 100644
--- a/litmus/locking.c
+++ b/litmus/locking.c
@@ -34,8 +34,10 @@ static int create_generic_lock(void** obj_ref, obj_type_t type, void* __user ar
34 int err; 34 int err;
35 35
36 err = litmus->allocate_lock(&lock, type, arg); 36 err = litmus->allocate_lock(&lock, type, arg);
37 if (err == 0) 37 if (err == 0) {
38 INIT_LIST_HEAD(&lock->lock_chain);
38 *obj_ref = lock; 39 *obj_ref = lock;
40 }
39 return err; 41 return err;
40} 42}
41 43