Changeset 52063 in vbox
- Timestamp:
- Jul 16, 2014 8:19:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r52062 r52063 1862 1862 { 1863 1863 LogFlowFunc(("\n")); 1864 int rc = VINF_SUCCESS; 1865 void *pvNew = NULL; 1864 int rc; 1866 1865 PVBOXDISK pThis = PDMIMEDIA_2_VBOXDISK(pInterface); 1867 1866 1868 1867 /* Configured encryption requires locked down memory. */ 1869 1868 if (pThis->pCfgCrypto) 1870 rc = RTMemSaferAllocZEx( &pvNew, cb, RTMEMSAFER_F_REQUIRE_NOT_PAGABLE);1869 rc = RTMemSaferAllocZEx(ppvNew, cb, RTMEMSAFER_F_REQUIRE_NOT_PAGABLE); 1871 1870 else 1872 1871 { 1873 1872 cb = RT_ALIGN_Z(cb, _4K); 1874 pvNew = RTMemPageAlloc(cb);1873 void *pvNew = RTMemPageAlloc(cb); 1875 1874 if (RT_LIKELY(pvNew)) 1875 { 1876 1876 *ppvNew = pvNew; 1877 rc = VINF_SUCCESS; 1878 } 1877 1879 else 1878 1880 rc = VERR_NO_MEMORY;
Note:
See TracChangeset
for help on using the changeset viewer.