diff options
Diffstat (limited to 'litmus/srp.c')
-rw-r--r-- | litmus/srp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/litmus/srp.c b/litmus/srp.c index 2ed4ec12a9d3..5ffdc9e7dc5b 100644 --- a/litmus/srp.c +++ b/litmus/srp.c | |||
@@ -219,6 +219,7 @@ struct srp_semaphore* allocate_srp_semaphore(void) | |||
219 | sem = kmalloc(sizeof(*sem), GFP_KERNEL); | 219 | sem = kmalloc(sizeof(*sem), GFP_KERNEL); |
220 | if (!sem) | 220 | if (!sem) |
221 | return NULL; | 221 | return NULL; |
222 | memset(sem, 0, sizeof(*sem)); | ||
222 | 223 | ||
223 | INIT_LIST_HEAD(&sem->ceiling.list); | 224 | INIT_LIST_HEAD(&sem->ceiling.list); |
224 | sem->ceiling.priority = 0; | 225 | sem->ceiling.priority = 0; |