From 09f6f24cf229cdda31dfcc73288562b5dc9c5071 Mon Sep 17 00:00:00 2001 From: leonidk Date: Wed, 9 Jul 2008 10:25:19 +0000 Subject: [PATCH] [MLX4] fixed incorrect mlx4\kernel\bus\ib module initialization, which caused BSOD upon disabling second HCA git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1354 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- hw/mlx4/kernel/bus/drv/drv.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hw/mlx4/kernel/bus/drv/drv.c b/hw/mlx4/kernel/bus/drv/drv.c index 58c0910b..456ef259 100644 --- a/hw/mlx4/kernel/bus/drv/drv.c +++ b/hw/mlx4/kernel/bus/drv/drv.c @@ -563,13 +563,6 @@ EvtPrepareHardware( goto err; } - // IB library - err = mlx4_ib_init(); - if (err) { - status = errno_to_ntstatus(err); - goto err; - } - #ifndef USE_WDM_INTERRUPTS // // complete filling interrupt context (for more efficiency) @@ -618,7 +611,6 @@ EvtReleaseHardware( MLX4_ENTER(MLX4_DBG_DRV); - mlx4_ib_cleanup(); mlx4_remove_one( &p_fdo->pci_dev ); __put_resources( p_fdo ); @@ -843,6 +835,7 @@ EvtDriverUnload( UNUSED_PARAM( Driver ); + mlx4_ib_cleanup(); core_cleanup(); MLX4_EXIT( MLX4_DBG_DRV ); @@ -1065,6 +1058,11 @@ Return Value: status = errno_to_ntstatus(err); goto end; } + err = mlx4_ib_init(); + if (err) { + status = errno_to_ntstatus(err); + goto end; + } // // Initiialize driver config to control the attributes that -- 2.17.1