Solved datapath-windows: BSOD when initializing switch context
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Thu, 2 Jul 2015 06:35:58 +0000 (06:35 +0000)
committerBen Pfaff <blp@nicira.com>
Thu, 2 Jul 2015 15:34:45 +0000 (08:34 -0700)
commit06d25d3daae874a04a96aad9e576cc4dc9ee9d25
tree766862c4928999c813bd26db0112db173ffa7f3a
parentcddc232f432e186fc58ab638882ac740ddfddfb6
Solved datapath-windows: BSOD when initializing switch context

Add check in case of NdisAllocateRWLock fails to allocate the resources.

Check datapath->lock before trying to free it.

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Reported-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-at: https://github.com/openvswitch/ovs-issues/issues/92
Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/Flow.c