VirtualBox

Changeset 52062 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Jul 16, 2014 8:17:35 PM (10 years ago)
Author:
vboxsync
Message:

build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r52023 r52062  
    18681868    /* Configured encryption requires locked down memory. */
    18691869    if (pThis->pCfgCrypto)
    1870         pvNew = RTMemSaferAllocZ(cb);
     1870        rc = RTMemSaferAllocZEx(&pvNew, cb, RTMEMSAFER_F_REQUIRE_NOT_PAGABLE);
    18711871    else
    18721872    {
    18731873        cb = RT_ALIGN_Z(cb, _4K);
    18741874        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    }
    18811880
    18821881    LogFlowFunc(("returns %Rrc\n", rc));
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