projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
487cedc
)
classifier: Pass correct member to CONTAINER_OF in cls_table_next_rule().
author
Ben Pfaff
<blp@nicira.com>
Thu, 11 Nov 2010 18:25:34 +0000
(10:25 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 11 Nov 2010 18:25:34 +0000
(10:25 -0800)
Fixes a segmentation fault in uses of CLASSIFIER_FOR_EACH_EXACT_RULE.
Reported-by: Derek Cormier <derek.cormier@lab.ntt.co.jp>
lib/classifier.c
patch
|
blob
|
history
diff --git
a/lib/classifier.c
b/lib/classifier.c
index 85c3c45afb0957a8a1a4857858b781a01cf75fc5..38c4d25cc081b2a293f5186002164d2df3c75d90 100644
(file)
--- a/
lib/classifier.c
+++ b/
lib/classifier.c
@@
-91,7
+91,7
@@
struct cls_rule *
cls_table_next_rule(const struct cls_table *table, const struct cls_rule *rule)
{
struct cls_rule *next
- = CONTAINER_OF(rule->list.next, struct cls_rule,
hmap_node
);
+ = CONTAINER_OF(rule->list.next, struct cls_rule,
list
);
return (next->priority < rule->priority
? next