Changeset 4474 in vbox for trunk/src/VBox/HostDrivers/Support/solaris
- Timestamp:
- Aug 31, 2007 7:23:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c
r4287 r4474 513 513 PSUPDRVIOCTLDATA pArgData = (PSUPDRVIOCTLDATA)pArgs; 514 514 515 cmn_err(CE_CONT, "VBoxDrvSolarisIOCtlSlow\n");516 515 /* 517 516 * Allocate and copy user space input data buffer to kernel space. … … 528 527 } 529 528 530 rc = ddi_copyin(pArgData->pvIn, pvBuf, cbBuf, Mode);529 rc = ddi_copyin(pArgData->pvIn, pvBuf, pArgData->cbIn, Mode); 531 530 532 531 if (rc != 0) 533 532 { 534 OSDBGPRINT(("VBoxDrvSolarisIOCtlSlow: ddi_copyin(%p,%d) failed.\n", pArgData->pvIn, cbBuf));533 OSDBGPRINT(("VBoxDrvSolarisIOCtlSlow: ddi_copyin(%p,%d) failed.\n", pArgData->pvIn, pArgData->cbIn)); 535 534 536 535 RTMemTmpFree(pvBuf); … … 555 554 rc = ddi_copyout(pvBuf, pArgData->pvOut, cbOut, Mode); 556 555 if (rc != 0) 556 { 557 557 OSDBGPRINT(("VBoxDrvSolarisIOCtlSlow: ddi_copyout(,%p,%d) failed.\n", pArgData->pvOut, cbBuf)); 558 559 /** @todo r=bird: why this extra return? setting rc = EFAULT; should do the trick, shouldn't it? */ 560 RTMemTmpFree(pvBuf); 561 return EFAULT; 562 } 558 563 } 559 564 else … … 564 569 } 565 570 571 if (pvBuf) 572 RTMemTmpFree(pvBuf); 573 566 574 OSDBGPRINT(("VBoxDrvSolarisIOCtlSlow: returns %d cbOut=%d\n", rc, cbOut)); 567 575 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.