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:
3016f3e
)
bond: fix uninitialized use of use_recirc variable
author
Andy Zhou
<azhou@nicira.com>
Tue, 29 Apr 2014 20:04:00 +0000
(13:04 -0700)
committer
Andy Zhou
<azhou@nicira.com>
Wed, 30 Apr 2014 03:00:06 +0000
(20:00 -0700)
Caught by clang-3.5.
Reported-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Pritesh Kothari <pritesh.kothari@cisco.com>
ofproto/bond.c
patch
|
blob
|
history
diff --git
a/ofproto/bond.c
b/ofproto/bond.c
index
f5a9d47
..
c1a8448
100644
(file)
--- a/
ofproto/bond.c
+++ b/
ofproto/bond.c
@@
-1180,10
+1180,11
@@
bond_rebalance(struct bond *bond)
e->tx_bytes /= 2;
}
e->tx_bytes /= 2;
}
-done:
if (use_recirc && rebalanced) {
bond_update_post_recirc_rules(bond,true);
}
if (use_recirc && rebalanced) {
bond_update_post_recirc_rules(bond,true);
}
+
+done:
ovs_rwlock_unlock(&rwlock);
}
\f
ovs_rwlock_unlock(&rwlock);
}
\f