VirtualBox

Changeset 51626 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 16, 2014 8:15:14 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94371
Message:

QCOW: Initialize the L2 cache always, fixes a crash if opening the image file fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/QCOW.cpp

    r50988 r51626  
    10341034    AssertPtrReturn(pImage->pIfIo, VERR_INVALID_PARAMETER);
    10351035
     1036    rc = qcowL2TblCacheCreate(pImage);
     1037    AssertRC(rc);
     1038
    10361039    /*
    10371040     * Open the image.
     
    10611064            pImage->offNextCluster = RT_ALIGN_64(cbFile, 512); /* Align image to sector boundary. */
    10621065            Assert(pImage->offNextCluster >= cbFile);
    1063 
    1064             rc = qcowL2TblCacheCreate(pImage);
    1065             AssertRC(rc);
    10661066
    10671067            if (Header.u32Version == 1)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette