[ofw] [patch] [ibbus] Hibernation bugfix 2/2
Alex Naslednikov
xalex at mellanox.co.il
Wed Oct 29 02:15:45 PDT 2008
Index: hw/mlx4/kernel/hca/drv.c
===================================================================
--- hw/mlx4/kernel/hca/drv.c (revision 3373)
+++ hw/mlx4/kernel/hca/drv.c (working copy)
@@ -358,6 +358,7 @@
}
/* Notify AL that we're available... */
+ ASSERT(p_hca_ifc->p_hca_dev);
ib_status = p_fdo->ci_ifc.register_ca( p_hca_ifc );
ExFreePool( p_hca_ifc );
if( ib_status != IB_SUCCESS )
Index: ulp/ipoib/kernel/ipoib_adapter.c
===================================================================
--- ulp/ipoib/kernel/ipoib_adapter.c (revision 3373)
+++ ulp/ipoib/kernel/ipoib_adapter.c (working copy)
@@ -498,6 +498,7 @@
p_adapter->p_ifc->close_al( p_adapter->h_al );
cl_free( p_adapter->p_ifc );
+ p_adapter->p_ifc = NULL;
}
cl_vector_destroy( &p_adapter->ip_vector );
Index: ulp/ipoib/kernel/ipoib_driver.c
===================================================================
--- ulp/ipoib/kernel/ipoib_driver.c (revision 3373)
+++ ulp/ipoib/kernel/ipoib_driver.c (working copy)
@@ -681,8 +681,9 @@
* query remove IRP. We will always get unloaded before the bus
driver
* since we're a child device.
*/
- p_adapter->p_ifc->wdm.InterfaceDereference(
- p_adapter->p_ifc->wdm.Context );
+ if (p_adapter->p_ifc)
+ p_adapter->p_ifc->wdm.InterfaceDereference(
+ p_adapter->p_ifc->wdm.Context );
IPOIB_EXIT( IPOIB_DBG_INIT );
return NDIS_STATUS_SUCCESS;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081029/973a0e16/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hibernation_2.patch
Type: application/octet-stream
Size: 1443 bytes
Desc: hibernation_2.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081029/973a0e16/attachment.obj>
More information about the ofw
mailing list