[ofw] RE: IBBUS - IOU manager - clear device extension before use.
Leonid Keller
leonid at mellanox.co.il
Tue May 19 07:18:42 PDT 2009
OK
> -----Original Message-----
> From: Smith, Stan [mailto:stan.smith at intel.com]
> Sent: Monday, May 18, 2009 10:32 PM
> To: Leonid Keller
> Cc: ofw at lists.openfabrics.org
> Subject: IBBUS - IOU manager - clear device extension before use.
>
> 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;
>
More information about the ofw
mailing list