[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/5] Assert that transmitter not being sent NULL MDL's


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Durrant <xadimgnik@xxxxxxxxx>
  • Date: Thu, 5 Aug 2021 19:21:42 +0100
  • Delivery-date: Thu, 05 Aug 2021 18:21:46 +0000
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

On 28/07/2021 15:02, Martin Harvey wrote:
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>

Acked-by: Paul Durrant <paul@xxxxxxx>

---
  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);





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.