Skip to content

Commit

Permalink
datapath-windows Release lock on HVUpdateNIC
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alin Serdean authored and blp committed Apr 6, 2015
1 parent ce51125 commit 6c6045a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datapath-windows/ovsext/Vport.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6c6045a

Please sign in to comment.