[ofw] [Patch][IPoIB_NDIS6_CM] Handling memory access violation at destroy when __port_init fails.

Smith, Stan stan.smith at intel.com
Tue Sep 21 08:57:03 PDT 2010


Please see below.

________________________________
From: ofw-bounces at lists.openfabrics.org [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Alex Naslednikov
Sent: Tuesday, September 21, 2010 7:54 AM
To: ofw at lists.openfabrics.org
Subject: [ofw] [Patch][IPoIB_NDIS6_CM] Handling memory access violation at destroy when __port_init fails.

Index: B:/users/xalex/WoF-trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp
===================================================================
--- B:/users/xalex/WoF-trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp        (revision 2939)
+++ B:/users/xalex/WoF-trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp     (working copy)
@@ -3428,6 +3428,7 @@
                cl_qpool_destroy(&p_port->send_mgr.sg_pool);

                //Now, free port descriptor
+             if (p_port->p_desc)
                ExFreePoolWithTag(p_port->p_desc, 'XMXA');

Is the following statement also required?
                p_port->p_desc = NULL;

                //Lookaside list will be destroyed in __buf_mgr_destroy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100921/d87a8bd6/attachment.html>


More information about the ofw mailing list