Changeset 84391 in vbox for trunk/src/VBox
- Timestamp:
- May 20, 2020 6:38:33 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp
r84390 r84391 1863 1863 1864 1864 if (pThisCC->pDrv && fPromiscChanged) 1865 { 1865 1866 if (pThis->fPromiscuous | pThis->fAllMulticast) 1867 { 1866 1868 pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, true); 1869 } 1867 1870 else 1871 { 1868 1872 pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, false); 1873 } 1874 } 1869 1875 1870 1876 return VIRTIONET_OK; … … 2753 2759 RT_NOREF(pThis); 2754 2760 2755 // int rc = PDMDevHlpDriverAttach(pDevIns, 0, &pDevIns->IBase, &pThisCC->pDrvBase, "Network Port");2756 2761 int rc = PDMDevHlpDriverAttach(pDevIns, 0, &pThisCC->IBase, &pThisCC->pDrvBase, "Network Port"); 2757 2762 if (RT_SUCCESS(rc)) … … 2766 2771 2767 2772 LEAVE_CRITICAL_SECTION; 2768 return rc;2769 2770 2773 AssertRelease(!pThisCC->pDrvBase); 2771 2774 return rc; -
trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp
r84390 r84391 886 886 REQ_RESP_HDR_T RespHdr; 887 887 RespHdr.cbSenseLen = cbSense & UINT32_MAX; 888 RespHdr.uResidual = cbResidual ;888 RespHdr.uResidual = cbResidual & UINT32_MAX; 889 889 RespHdr.uStatusQualifier = 0; 890 890 RespHdr.uStatus = bStatus; … … 1338 1338 respHdr.uStatus = SCSI_STATUS_CHECK_CONDITION; 1339 1339 respHdr.uResponse = VIRTIOSCSI_S_FAILURE; 1340 respHdr.uResidual = cbDataIn + cbDataOut;1340 respHdr.uResidual = (cbDataIn + cbDataOut) & UINT32_MAX; 1341 1341 virtioScsiR3ReqErr(pDevIns, pThis, pThisCC, qIdx, pDescChain, &respHdr, abSense, cbSenseCfg); 1342 1342 virtioScsiR3FreeReq(pTarget, pReq);
Note:
See TracChangeset
for help on using the changeset viewer.