VirtualBox

Changeset 44442 in vbox for trunk


Ignore:
Timestamp:
Jan 29, 2013 10:39:21 AM (12 years ago)
Author:
vboxsync
Message:

GMMR0.cpp: Fixed sparse allocation of chunk IDs spotted by Frank (gmmR0AllocateChunkId). Both ASMBitNextClear and the gmmR0AllocateChunkId incremented the chunk ID before searching.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GMMR0.cpp

    r43235 r44442  
    19601960        &&  idChunk > NIL_GMM_CHUNKID)
    19611961    {
    1962         idChunk = ASMBitNextClear(&pGMM->bmChunkId[0], GMM_CHUNKID_LAST + 1, idChunk);
     1962        idChunk = ASMBitNextClear(&pGMM->bmChunkId[0], GMM_CHUNKID_LAST + 1, idChunk - 1);
    19631963        if (idChunk > NIL_GMM_CHUNKID)
    19641964        {
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