Changeset 52062 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Jul 16, 2014 8:17:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r52023 r52062 1868 1868 /* Configured encryption requires locked down memory. */ 1869 1869 if (pThis->pCfgCrypto) 1870 pvNew = RTMemSaferAllocZ(cb);1870 rc = RTMemSaferAllocZEx(&pvNew, cb, RTMEMSAFER_F_REQUIRE_NOT_PAGABLE); 1871 1871 else 1872 1872 { 1873 1873 cb = RT_ALIGN_Z(cb, _4K); 1874 1874 pvNew = RTMemPageAlloc(cb); 1875 } 1876 1877 if (RT_LIKELY(pvNew)) 1878 *ppvNew = pvNew; 1879 else 1880 rc = VERR_NO_MEMORY; 1875 if (RT_LIKELY(pvNew)) 1876 *ppvNew = pvNew; 1877 else 1878 rc = VERR_NO_MEMORY; 1879 } 1881 1880 1882 1881 LogFlowFunc(("returns %Rrc\n", rc));
Note:
See TracChangeset
for help on using the changeset viewer.