[ofw] IBBUS - IOU manager - clear device extension before use.

Smith, Stan stan.smith at intel.com
Mon May 18 12:32:15 PDT 2009


Hello,
  Clear IOU PDO device extension memory before use; same approach as used in the port manager.

Will commit upon your approval.

Thank you,

Stan.

Signed off by stan.smith at intel.com


diff U3 C:/Documents and Settings/scsmith/Local Settings/Temp/bus_iou_m-revBASE.svn004.tmp.c C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/trunk/core/bus/kernel/bus_iou_mgr.c
--- C:/Documents and Settings/scsmith/Local Settings/Temp/bus_iou_m-revBASE.svn004.tmp.c        Mon May 18 12:01:05 2009
+++ C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/trunk/core/bus/kernel/bus_iou_mgr.c  Mon May 18 12:00:38 2009
@@ -731,6 +731,9 @@
                return IB_ERROR;
        }

+       p_iou_ext = p_pdo->DeviceExtension;
+       memset( p_iou_ext, 0, sizeof(bus_iou_ext_t) );
+
        /* Initialize the device extension. */
        cl_init_pnp_po_ext( p_pdo, NULL, p_pdo, bus_globals.dbg_lvl,
                                                &vfptr_iou_pnp, &vfptr_iou_query_txt );
@@ -738,7 +741,6 @@
        /* Set the DO_BUS_ENUMERATED_DEVICE flag to mark it as a PDO. */
        p_pdo->Flags |= DO_BUS_ENUMERATED_DEVICE;

-       p_iou_ext = p_pdo->DeviceExtension;
        p_iou_ext->pdo.dev_po_state.DeviceState = PowerDeviceD0;
        p_iou_ext->pdo.p_parent_ext = p_bfi->p_bus_ext;
        p_iou_ext->pdo.b_present = TRUE;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bus_iou_mgr.c.patch
Type: application/octet-stream
Size: 1073 bytes
Desc: bus_iou_mgr.c.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090518/33c9b6cf/attachment.obj>


More information about the ofw mailing list