[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] Assert that transmitter not being sent NULL MDL's
- To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Martin Harvey <Martin.Harvey@xxxxxxxxxx>
- Date: Wed, 28 Jul 2021 15:02:46 +0100
- Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
- Cc: Martin Harvey <Martin.Harvey@xxxxxxxxxx>, Martin Harvey <martin.harvey@xxxxxxxxxx>
- Delivery-date: Wed, 28 Jul 2021 14:03:46 +0000
- Ironport-hdrordr: A9a23:jDEU/KNenR9woMBcTvijsMiBIKoaSvp037BL7TEJdfUxSKalfq +V7ZEmPHPP+VQssTQb6LO90cq7IE80l6QFhbX5VI3KNGLbUSmTTL2KhrGSpAEIdReOkNK1Fp 0NT0G9MrDN5JRB4voSKTPXL+od
- Ironport-sdr: 63PkpP2YA/4vNEob6KdBXpJngzsSkMHVX3YE8/qdk5EJ3P6s4n8en1zI5bNk/b0dvZSPZ8twFr AXiWdbaLkBvsAPhqUtMKwACKaTrDElkRNJHD5HK/WODVxOtpt0GmxCTSCbSQophSwvCzju9lub wwYnGwJnJpaFRd6ixDZ4IARUoM5tm6r6tSPw4GLoXvZf3imBCMu3ydsSi8mwvZDGkC+srCNsHx 0NXwkpJAfhYvKAvOyc6Kgatg5gytYp9fs11vHILJJtaBRfAbF8+JQ3msb0QYqnaFf1cGWpyZ+3 oqOoE7VxoV55w5sOsKO+I3hJ
- List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
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@xxxxxxxxxx>
---
src/xenvif/transmitter.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/xenvif/transmitter.c b/src/xenvif/transmitter.c
index 47f2fc2..b5fb9a8 100644
--- a/src/xenvif/transmitter.c
+++ b/src/xenvif/transmitter.c
@@ -5143,6 +5143,8 @@ TransmitterQueuePacket(
PXENVIF_TRANSMITTER_RING Ring;
NTSTATUS status;
+ ASSERT(Mdl != NULL);
+
Frontend = Transmitter->Frontend;
Packet = __TransmitterGetPacket(Transmitter);
--
2.25.0.windows.1
|