VirtualBox

Changeset 7913 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Apr 11, 2008 12:54:53 PM (17 years ago)
Author:
vboxsync
Message:

Check for NIL_CPUID in RTMpOnSpecific.

Location:
trunk/src/VBox/Runtime/r0drv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/mp-r0drv-nt.cpp

    r7506 r7913  
    169169
    170170    if (    enmCpuid == RT_NT_CPUID_SPECIFIC
    171         &&  !(Mask & RT_BIT_64(idCpu)))
     171        &&  (   idCpu >= 64
     172             || !(Mask & RT_BIT_64(idCpu))))
    172173        return VERR_CPU_NOT_FOUND;  /* can't distinguish between cpu not present or offline */
    173174
  • trunk/src/VBox/Runtime/r0drv/solaris/mp-r0drv-solaris.c

    r7419 r7913  
    231231    RTMPARGS Args;
    232232
     233    if (idCpu >= NCPU)
     234        return VERR_CPU_NOT_FOUND;
     235
    233236    Args.pfnWorker = pfnWorker;
    234237    Args.pvUser1 = pvUser1;
     
    238241
    239242    CPUSET_ZERO(Set);
    240     AssertReturn(idCpu < NCPU, VERR_INVALID_PARAMETER);
    241243    CPUSET_ADD(Set, idCpu);
    242244
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