diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2013-01-18 11:13:07 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2013-01-18 11:14:15 -0500 |
commit | cc9f46d0ce73ae30e3918999976ef587b0e8a04d (patch) | |
tree | 85c3da741b968ce8ad0f3b75daa86238cd93a054 /litmus/kfmlp_lock.c | |
parent | e6b58b65441925c307f40ce5bd9d5676750f7601 (diff) |
/proc hooks for locking protocols.
RSM locks only make use of /proc for now.
Diffstat (limited to 'litmus/kfmlp_lock.c')
-rw-r--r-- | litmus/kfmlp_lock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/litmus/kfmlp_lock.c b/litmus/kfmlp_lock.c index 785a095275e6..377e5a8f7456 100644 --- a/litmus/kfmlp_lock.c +++ b/litmus/kfmlp_lock.c | |||
@@ -486,6 +486,7 @@ struct litmus_lock* kfmlp_new(struct litmus_lock_ops* ops, void* __user args) | |||
486 | { | 486 | { |
487 | return(NULL); | 487 | return(NULL); |
488 | } | 488 | } |
489 | memset(sem, 0, sizeof(*sem)); | ||
489 | 490 | ||
490 | sem->queues = kmalloc(sizeof(struct kfmlp_queue)*num_resources, GFP_KERNEL); | 491 | sem->queues = kmalloc(sizeof(struct kfmlp_queue)*num_resources, GFP_KERNEL); |
491 | if(!sem->queues) | 492 | if(!sem->queues) |