Fixed kernel crash when removing IPOIB_CM option from configuration file

Changed module init from module_init() to module_init_order() with
SI_ORDER_MIDDLE flag
Submitted by:	Orit Moskovich (oritm mellanox.com)
Approved by:	re
This commit is contained in:
Alfred Perlstein 2013-10-01 15:36:51 +00:00
parent babfea95f9
commit 549e8f8b3f
2 changed files with 2 additions and 2 deletions

View File

@ -2431,7 +2431,7 @@ static void __exit mlx4_ib_cleanup(void)
}
module_init(mlx4_ib_init);
module_init_order(mlx4_ib_init, SI_ORDER_MIDDLE);
module_exit(mlx4_ib_cleanup);
#undef MODULE_VERSION

View File

@ -2859,7 +2859,7 @@ static void __exit mlx4_cleanup(void)
destroy_workqueue(mlx4_wq);
}
module_init(mlx4_init);
module_init_order(mlx4_init, SI_ORDER_MIDDLE);
module_exit(mlx4_cleanup);
#undef MODULE_VERSION