Changeset 36031 in vbox
- Timestamp:
- Feb 21, 2011 12:25:12 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70139
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSBMon-solaris.c
r33540 r36031 222 222 */ 223 223 mutex_init(&g_VBoxUSBMonSolarisMtx, NULL, MUTEX_DRIVER, NULL); 224 rc = ddi_soft_state_init(&g_pVBoxUSBMonSolarisState, sizeof(vboxusbmon_state_t), 1);225 if ( !rc)226 { 227 rc = mod_install(&g_VBoxUSBMonSolarisModLinkage);224 rc = VBoxUSBFilterInit(); 225 if (RT_SUCCESS(rc)) 226 { 227 rc = ddi_soft_state_init(&g_pVBoxUSBMonSolarisState, sizeof(vboxusbmon_state_t), 1); 228 228 if (!rc) 229 return rc; 230 231 LogRel((DEVICE_NAME ":mod_install failed! rc=%d\n", rc)); 232 ddi_soft_state_fini(&g_pVBoxUSBMonSolarisState); 229 { 230 rc = mod_install(&g_VBoxUSBMonSolarisModLinkage); 231 if (!rc) 232 return rc; 233 234 LogRel((DEVICE_NAME ":mod_install failed! rc=%d\n", rc)); 235 ddi_soft_state_fini(&g_pVBoxUSBMonSolarisState); 236 } 237 else 238 LogRel((DEVICE_NAME ":ddi_soft_state_init failed! rc=%d\n", rc)); 233 239 } 234 240 else 235 LogRel((DEVICE_NAME ": ddi_soft_state_init failed! rc=%d\n", rc));241 LogRel((DEVICE_NAME ":VBoxUSBFilterInit failed! rc=%d\n", rc)); 236 242 237 243 mutex_destroy(&g_VBoxUSBMonSolarisMtx); … … 255 261 { 256 262 ddi_soft_state_fini(&g_pVBoxUSBMonSolarisState); 263 VBoxUSBFilterTerm(); 257 264 mutex_destroy(&g_VBoxUSBMonSolarisMtx); 258 265
Note:
See TracChangeset
for help on using the changeset viewer.