aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/kfmlp_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/kfmlp_lock.c')
-rw-r--r--litmus/kfmlp_lock.c1
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)