From: Ben Pfaff Date: Wed, 6 Aug 2008 18:40:14 +0000 (-0700) Subject: Fix uninitialized struct member in userspace table-linear. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=874bb0cbc1a6da61dfc71f4f4c58617cdc0a8df4;p=openvswitch Fix uninitialized struct member in userspace table-linear. --- diff --git a/switch/table-linear.c b/switch/table-linear.c index 43e56e9a..fa87763b 100644 --- a/switch/table-linear.c +++ b/switch/table-linear.c @@ -92,6 +92,7 @@ static int table_linear_insert(struct sw_table *swt, struct sw_flow *flow) tl->n_flows++; /* Insert the entry immediately in front of where we're pointing. */ + flow->serial = tl->next_serial++; list_insert(&f->node, &flow->node); list_push_front(&tl->iter_flows, &flow->iter_node);