VirtualBox

Changeset 6412 in vbox


Ignore:
Timestamp:
Jan 21, 2008 2:54:51 PM (17 years ago)
Author:
vboxsync
Message:

Solaris vboxdrv return value consistencies.

File:
1 edited

Legend:

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

    r5999 r6412  
    489489    {
    490490        OSDBGPRINT(("VBoxDrvSolarisClose: no state data for %#x (%d)\n", Dev, getminor(Dev)));
    491         return DDI_SUCCESS;
     491        return EFAULT;
    492492    }
    493493
     
    499499    {
    500500        OSDBGPRINT(("VBoxDrvSolarisClose: no session in state data for %#x (%d)\n", Dev, getminor(Dev)));
    501         return DDI_SUCCESS;
     501        return EFAULT;
    502502    }
    503503    OSDBGPRINT(("VBoxDrvSolarisClose: Dev=%#x pSession=%p pid=%d r0proc=%p thread=%p\n", Dev, pSession, RTProcSelf(), RTR0ProcHandleSelf(), RTThreadNativeSelf() ));
     
    545545        OSDBGPRINT(("VBoxDrvSolarisClose: WHAT?!? pSession == NULL! This must be a mistake... pid=%d (close)\n",
    546546                    (int)Process));
    547         return DDI_FAILURE;
     547        return EFAULT;
    548548    }
    549549#endif
     
    554554    supdrvCloseSession(&g_DevExt, pSession);
    555555    OSDBGPRINT(("VBoxDrvSolarisClose: returns\n"));
    556     return DDI_SUCCESS;
     556    return 0;
    557557}
    558558
     
    561561{
    562562    cmn_err(CE_CONT, "VBoxDrvSolarisRead");
    563     return DDI_SUCCESS;
     563    return 0;
    564564}
    565565
     
    568568{
    569569    cmn_err(CE_CONT, "VBoxDrvSolarisWrite");
    570     return DDI_SUCCESS;
     570    return 0;
    571571}
    572572
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