projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44528c5
)
hmap: Fix bug in hmap_replace().
author
Ben Pfaff
<blp@nicira.com>
Tue, 3 Nov 2009 20:50:46 +0000
(12:50 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 4 Nov 2009 23:01:02 +0000
(15:01 -0800)
When hmap_replace() replaces one hash table node by another, it must
ensure that any nodes following the old node also follow the new node,
by copying the "next" pointer from "old" to "new".
lib/hmap.h
patch
|
blob
|
history
diff --git
a/lib/hmap.h
b/lib/hmap.h
index 1809a91b5f85b5b1f4c97fcc5085f4d15bc5c9f9..98088059129a5c5d0705c94128182a98e582562c 100644
(file)
--- a/
lib/hmap.h
+++ b/
lib/hmap.h
@@
-190,6
+190,7
@@
hmap_replace(struct hmap *hmap,
}
*bucket = new;
new->hash = old->hash;
+ new->next = old->next;
}
static inline struct hmap_node *