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:30:31 +0000 (08:30 -0700)
commit706c0c0c17adcb3feb0e51e48c4e4a362f0e7ae9
treef8f1125c841d3842f6eab8c07dc9b4eb93c4b2b7
parent06994f879c9d12c164eb4abd44c2455a9eb96bec
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