From: Alin Serdean <[email protected]> If we can't allocate the NBL just go to the cleanup sequence.
Found using WDK 10 static code analysis. Signed-off-by: Alin Gabriel Serdean <[email protected]> --- datapath-windows/ovsext/IpFragment.c | 1 + 1 file changed, 1 insertion(+) diff --git a/datapath-windows/ovsext/IpFragment.c b/datapath-windows/ovsext/IpFragment.c index ad48834..3d5277a 100644 --- a/datapath-windows/ovsext/IpFragment.c +++ b/datapath-windows/ovsext/IpFragment.c @@ -206,6 +206,7 @@ OvsIpv4Reassemble(POVS_SWITCH_CONTEXT switchContext, if (*newNbl == NULL) { OVS_LOG_ERROR("Insufficient resources, failed to allocate newNbl"); status = NDIS_STATUS_RESOURCES; + goto cleanup; } /* Complete the fragment NBL */ -- 2.10.2.windows.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
