VirtualBox

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


Ignore:
Timestamp:
Nov 4, 2022 3:00:33 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154405
Message:

DevATA: Fix a mixed up logical operator ('&&' accidentally used instead

of '
') causing VMs with an empty CDROM drive attached to an IDE

controller to hang on boot waiting for a READ CAPACITY request to the
non-existent CD to finish (regression from r153527).

File:
1 edited

Legend:

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

    r96645 r97403  
    38623862                break;
    38633863            }
    3864             if (!pDevR3->pDrvMount && !pDevR3->pDrvMount->pfnIsMounted(pDevR3->pDrvMount))
     3864            if (!pDevR3->pDrvMount || !pDevR3->pDrvMount->pfnIsMounted(pDevR3->pDrvMount))
    38653865            {
    38663866                atapiR3CmdErrorSimple(pCtl, s, SCSI_SENSE_NOT_READY, SCSI_ASC_MEDIUM_NOT_PRESENT);
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