]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
Assert that transmitter not being sent NULL MDL's
authorMartin Harvey <Martin.Harvey@citrix.com>
Wed, 28 Jul 2021 14:02:46 +0000 (15:02 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Thu, 5 Aug 2021 18:23:22 +0000 (19:23 +0100)
An assertion to check that a corresponding fix in XenNet is preventing
NULL MDL's from being queued for transmission.

Signed-off-by: Martin Harvey <martin.harvey@citrix.com>
src/xenvif/transmitter.c

index fddeb0cc1624f18fae14619a7b479f2197244c15..de9b4768cee65c162bd15a541628279d118ed7c3 100644 (file)
@@ -5137,6 +5137,8 @@ TransmitterQueuePacket(
     PXENVIF_TRANSMITTER_RING        Ring;
     NTSTATUS                        status;
 
+    ASSERT(Mdl != NULL);
+
     Frontend = Transmitter->Frontend;
 
     Packet = __TransmitterGetPacket(Transmitter);