projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aa31ea
)
ofproto-dpif-xlate: Fix invalid memory read on port removal.
author
Ethan Jackson
<ethan@nicira.com>
Mon, 22 Jul 2013 19:54:09 +0000
(12:54 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Tue, 23 Jul 2013 22:53:35 +0000
(15:53 -0700)
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-xlate.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto-dpif-xlate.c
b/ofproto/ofproto-dpif-xlate.c
index
eb4ed69
..
e555603
100644
(file)
--- a/
ofproto/ofproto-dpif-xlate.c
+++ b/
ofproto/ofproto-dpif-xlate.c
@@
-400,7
+400,10
@@
xlate_ofport_remove(struct ofport_dpif *ofport)
xport->peer = NULL;
}
- list_remove(&xport->bundle_node);
+ if (xport->xbundle) {
+ list_remove(&xport->bundle_node);
+ }
+
hmap_remove(&xports, &xport->hmap_node);
hmap_remove(&xport->xbridge->xports, &xport->ofp_node);