[ofw][patch][IBBUS] fix ASSERT
Leonid Keller
leonid at mellanox.co.il
Sun Nov 23 10:40:44 PST 2008
[IBBUS] PnP: fix ASSERT in PnP handling. [mlnx: 3512]
Index: complib/kernel/cl_pnp_po.c
===================================================================
--- complib/kernel/cl_pnp_po.c (revision 1765)
+++ complib/kernel/cl_pnp_po.c (working copy)
@@ -653,7 +653,10 @@
ASSERT( p_ext->pnp_state == NotStarted ||
p_ext->pnp_state == Started ||
p_ext->pnp_state == RemovePending ||
- p_ext->pnp_state == SurpriseRemoved );
+ p_ext->pnp_state == SurpriseRemoved ||
+ // it can be in this state if IRP_MN_START_DEVICE failed
+ // pnpdtest /rebalance FailRestart creates this situation
+ p_ext->pnp_state == Stopped);
/* Set the device state. */
cl_set_pnp_state( p_ext, Deleted );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081123/7f3ded57/attachment.html>
More information about the ofw
mailing list