aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/flow_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/openvswitch/flow_table.c')
-rw-r--r--net/openvswitch/flow_table.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/openvswitch/flow_table.c b/net/openvswitch/flow_table.c
index bd14052ed342..3c268b3d71c3 100644
--- a/net/openvswitch/flow_table.c
+++ b/net/openvswitch/flow_table.c
@@ -158,11 +158,13 @@ void ovs_flow_free(struct sw_flow *flow, bool deferred)
158 if (!flow) 158 if (!flow)
159 return; 159 return;
160 160
161 ASSERT_OVSL();
162
163 if (flow->mask) { 161 if (flow->mask) {
164 struct sw_flow_mask *mask = flow->mask; 162 struct sw_flow_mask *mask = flow->mask;
165 163
164 /* ovs-lock is required to protect mask-refcount and
165 * mask list.
166 */
167 ASSERT_OVSL();
166 BUG_ON(!mask->ref_count); 168 BUG_ON(!mask->ref_count);
167 mask->ref_count--; 169 mask->ref_count--;
168 170