datapath: Fix race in datapath creation.
authorBen Pfaff <blp@nicira.com>
Wed, 8 Jul 2009 18:31:59 +0000 (11:31 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 8 Jul 2009 21:13:15 +0000 (14:13 -0700)
commit828bc1f0723e3ffce437bd5bc2b9494445e36d04
tree86455f182d3de508374ec2bbc32c5dd55c12f6f8
parent72ca14c15430b1e06b06fa2042dab347c1c7d7df
datapath: Fix race in datapath creation.

Before we create the local port, we should allocate and assign the table.
Otherwise packets sent on the local port before we do so will cause an
OOPS.

This is a theoretical race that has not been observed in practice.
datapath/datapath.c