MFC: Fix a couple of issues with the ibcs2 module event handler.

This commit is contained in:
jhb 2006-01-10 21:44:58 +00:00
parent 102dd80729
commit b01bef48d7

View File

@ -105,6 +105,8 @@ ibcs2_modevent(module_t mod, int type, void *unused)
int rval = 0;
switch(type) {
case MOD_LOAD:
break;
case MOD_UNLOAD:
/* if this was an ELF module we'd use elf_brand_inuse()... */
sx_slock(&allproc_lock);
@ -115,8 +117,9 @@ ibcs2_modevent(module_t mod, int type, void *unused)
}
}
sx_sunlock(&allproc_lock);
break;
default:
return (EOPNOTSUPP);
rval = EOPNOTSUPP;
break;
}
return (rval);