VirtualBox

Changeset 40616 in vbox


Ignore:
Timestamp:
Mar 25, 2012 7:36:02 PM (13 years ago)
Author:
vboxsync
Message:

SUPDrv-solaris.c: fixed bug in _init error code handling causing failure of ddi_soft_state_init or mod_install to be reported to the _init caller as success.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c

    r40607 r40616  
    244244            }
    245245            else
     246            {
    246247                LogRel((DEVICE_NAME ":VBoxDrvSolarisAttach: RTSpinlockCreate failed\n"));
     248                rc = RTErrConvertToErrno(rc);
     249            }
    247250            supdrvDeleteDevExt(&g_DevExt);
    248251        }
    249252        else
     253        {
    250254            LogRel((DEVICE_NAME ":VBoxDrvSolarisAttach: supdrvInitDevExt failed\n"));
     255            rc = RTErrConvertToErrno(rc);
     256        }
    251257        RTR0TermForced();
    252258    }
    253259    else
     260    {
    254261        LogRel((DEVICE_NAME ":VBoxDrvSolarisAttach: failed to init R0Drv\n"));
     262        rc = RTErrConvertToErrno(rc);
     263    }
    255264    memset(&g_DevExt, 0, sizeof(g_DevExt));
    256265
    257     return RTErrConvertToErrno(rc);
     266    return rc;
    258267}
    259268
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette