Be careful to never use any of the debug infrastructure either

before the debug subsystem is fully set up, or after the debug
subsystem has been torn down.



git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@86 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
behlendo 2008-04-22 22:22:02 +00:00
parent 7e4e211333
commit 18c9eadf97
1 changed files with 2 additions and 5 deletions

View File

@ -90,10 +90,9 @@ set_hostid(void)
static int __init spl_init(void)
{
int rc = 0;
ENTRY;
if ((rc = debug_init()))
RETURN(rc);
return rc;
if ((rc = kmem_init()))
GOTO(out , rc);
@ -120,7 +119,7 @@ out:
printk("SPL: Failed to Load Solaris Porting Layer v%s, "
"rc = %d\n", VERSION, rc);
RETURN(rc);
return rc;
}
static void spl_fini(void)
@ -132,8 +131,6 @@ static void spl_fini(void)
vn_fini();
kmem_fini();
debug_fini();
EXIT;
}
module_init(spl_init);