[ofw][patch][IBBUS] fix ASSERT
Leonid Keller
leonid at mellanox.co.il
Thu Nov 27 05:37:19 PST 2008
Applied in 1774.
________________________________
From: ofw-bounces at lists.openfabrics.org
[mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Leonid Keller
Sent: Sunday, November 23, 2008 8:41 PM
To: ofw at lists.openfabrics.org
Subject: [ofw][patch][IBBUS] fix ASSERT
[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/20081127/bf5860dc/attachment.html>
More information about the ofw
mailing list