repository: C:/dev/kvm-guest-drivers-windows
branch: master
commit dd79fd9e29ffa3682836f816fb93a0659b630030
Author: Yan Vugenfirer <[email protected]>
Date:   Sun May 2 15:20:40 2010 +0300

    [WIN-GUEST-DRIVERS] Fail empty NBL lists submission.
    
        Signed-off-by: Yan Vugenfirer [email protected]

diff --git a/NetKVM/wlh/ParaNdis6-Impl.c b/NetKVM/wlh/ParaNdis6-Impl.c
index 7a74a08..59d7ff9 100644
--- a/NetKVM/wlh/ParaNdis6-Impl.c
+++ b/NetKVM/wlh/ParaNdis6-Impl.c
@@ -1286,6 +1286,13 @@ static BOOLEAN PrepareSingleNBL(
                bOK = FALSE;
                pFailReason = "Failure to allocate BLE";
        }
+
+       if (bOK && !pB)
+       {
+               bOK = FALSE;
+               pFailReason = "Empty NBL";
+       }
+
        while (pB && bOK)
        {
                ULONG dataLength = NET_BUFFER_DATA_LENGTH(pB);
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to