diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-22 14:45:39 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-22 14:45:39 -0400 |
commit | 8973214f010cf55fbf18cb88471d6c99ed6ff575 (patch) | |
tree | 80fe28857305bb6cfaaa130206967282759511e7 /litmus/locking.c | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Introduction of basic nesting foundations.
Diffstat (limited to 'litmus/locking.c')
-rw-r--r-- | litmus/locking.c | 4 |
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 | ||