diff options
Diffstat (limited to 'litmus/ikglp_lock.c')
-rw-r--r-- | litmus/ikglp_lock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/litmus/ikglp_lock.c b/litmus/ikglp_lock.c index a4ae74331782..aa6b659e437d 100644 --- a/litmus/ikglp_lock.c +++ b/litmus/ikglp_lock.c | |||
@@ -1768,6 +1768,7 @@ struct litmus_lock* ikglp_new(int m, | |||
1768 | { | 1768 | { |
1769 | return NULL; | 1769 | return NULL; |
1770 | } | 1770 | } |
1771 | memset(sem, 0, sizeof(*sem)); | ||
1771 | 1772 | ||
1772 | sem->fifo_queues = kmalloc(sizeof(struct fifo_queue)*nr_replicas, GFP_KERNEL); | 1773 | sem->fifo_queues = kmalloc(sizeof(struct fifo_queue)*nr_replicas, GFP_KERNEL); |
1773 | if(!sem->fifo_queues) | 1774 | if(!sem->fifo_queues) |
@@ -2484,7 +2485,7 @@ ikglp_donee_heap_node_t* gpu_ikglp_advise_donee_selection( | |||
2484 | if(temp_distance < distance || donee_node == NULL) { | 2485 | if(temp_distance < distance || donee_node == NULL) { |
2485 | int dist_from_head = IKGLP_INVAL_DISTANCE; | 2486 | int dist_from_head = IKGLP_INVAL_DISTANCE; |
2486 | 2487 | ||
2487 | TRACE_CUR("searching for donor on GPU %d", i); | 2488 | TRACE_CUR("searching for donor on GPU %d\n", i); |
2488 | 2489 | ||
2489 | // visit each queue and pick a donee. bail as soon as we find | 2490 | // visit each queue and pick a donee. bail as soon as we find |
2490 | // one for this class. | 2491 | // one for this class. |