VirtualBox

Changeset 62389 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Jul 21, 2016 8:54:53 AM (8 years ago)
Author:
vboxsync
Message:

PCI: fix limit check for 64-bit BAR index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r61770 r62389  
    33 * DevPCI - ICH9 southbridge PCI bus emulation device.
    44 *
    5  * @note    bird: I've cleaned up DevPCI.cpp to some extend, this file has not
     5 * @note    bird: I've cleaned up DevPCI.cpp to some extent, this file has not
    66 *                be cleaned up and because of pending code merge.
    77 */
    88
    99/*
    10  * Copyright (C) 2010-2015 Oracle Corporation
     10 * Copyright (C) 2010-2016 Oracle Corporation
    1111 *
    1212 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    10481048    if ((enmType & PCI_ADDRESS_SPACE_BAR64) != 0)
    10491049    {
    1050         AssertMsgReturn(iRegion  < 4,
     1050        /* VBOX_PCI_BASE_ADDRESS_5 and VBOX_PCI_ROM_ADDRESS are excluded. */
     1051        AssertMsgReturn(iRegion < (PCI_NUM_REGIONS-2),
    10511052                        ("Region %d cannot be 64-bit\n", iRegion),
    10521053                        VERR_INVALID_PARAMETER);
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