diff options
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_main.c')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 8d35475..6f60abb 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -1082,19 +1082,19 @@ static int __init ipoib_init_module(void) return 0; -err_fs: - ipoib_unregister_debugfs(); - err_wq: destroy_workqueue(ipoib_workqueue); +err_fs: + ipoib_unregister_debugfs(); + return ret; } static void __exit ipoib_cleanup_module(void) { - ipoib_unregister_debugfs(); ib_unregister_client(&ipoib_client); + ipoib_unregister_debugfs(); destroy_workqueue(ipoib_workqueue); } |