-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
return -1;
}
+ rc = cfs_wi_startup();
+ if (rc != 0) {
+ CERROR("cfs_wi_startup() failed: %d\n", rc);
+ libcfs_debug_cleanup();
+ return -1;
+ }
+
rc = LNetInit();
if (rc != 0) {
CERROR("LNetInit() failed: %d\n", rc);
+ cfs_wi_shutdown();
libcfs_debug_cleanup();
return -1;
}
if (rc != 0) {
fprintf(stderr, "Can't startup selftest\n");
LNetFini();
+ cfs_wi_shutdown();
libcfs_debug_cleanup();
-
return -1;
}
LNetFini();
+ cfs_wi_shutdown();
+
libcfs_debug_cleanup();
return rc;