git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
795cc5c
)
seq: Initialize 'ovsthread_id' member of waiters in seq_wait__().
author
Ben Pfaff
<blp@nicira.com>
Fri, 16 Aug 2013 18:20:57 +0000
(11:20 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 16 Aug 2013 18:20:57 +0000
(11:20 -0700)
Found by valgrind.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
lib/seq.c
patch
|
blob
|
history
diff --git
a/lib/seq.c
b/lib/seq.c
index
36e5065
..
ed205a1
100644
(file)
--- a/
lib/seq.c
+++ b/
lib/seq.c
@@
-148,6
+148,7
@@
seq_wait__(struct seq *seq, uint64_t value)
waiter = xmalloc(sizeof *waiter);
waiter->seq = seq;
hmap_insert(&seq->waiters, &waiter->hmap_node, hash);
+ waiter->ovsthread_id = id;
waiter->value = value;
waiter->thread = seq_thread_get();
list_push_back(&waiter->thread->waiters, &waiter->list_node);