diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2015-04-06 17:22:06 +0000 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-04-06 11:06:22 -0700 |
commit | 6c6045a72a93f72317567cc6075ac306ef0a3c44 (patch) | |
tree | 843045f0ba07cbc65884192a575c0cf00eb4605a /datapath-windows | |
parent | ce5112573fa58d34ca87dc488ec0d996f8c7f0d8 (diff) | |
download | openvswitch-6c6045a72a93f72317567cc6075ac306ef0a3c44.tar.gz |
datapath-windows Release lock on HVUpdateNIC
Release switchContext->dispatchLock in case the vport has not been found.
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows')
-rw-r--r-- | datapath-windows/ovsext/Vport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index 38bbcfa2d..f46a0ac04 100644 --- a/datapath-windows/ovsext/Vport.c +++ b/datapath-windows/ovsext/Vport.c @@ -404,6 +404,7 @@ HvUpdateNic(POVS_SWITCH_CONTEXT switchContext, nicParam->PortId, nicParam->NicIndex); if (vport == NULL) { + NdisReleaseRWLock(switchContext->dispatchLock, &lockState); OVS_LOG_WARN("Vport search failed."); goto update_nic_done; } |