VirtualBox

Changeset 29475 in vbox


Ignore:
Timestamp:
May 14, 2010 2:56:49 PM (15 years ago)
Author:
vboxsync
Message:

Solaris/r0drv: fixed double downgrading of a page lock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/os/vbi.c

    r27776 r29475  
    13691369                /*
    13701370                 * prepare pages for mapping into kernel/user space, we need to
    1371                  * downgrade the exclusive page lock to a shared lock.
     1371                 * downgrade the exclusive page lock to a shared lock if the
     1372                 * pages is locked exclusively.
    13721373                 */
    1373                 page_downgrade(pp_pages[i]);
     1374                if (page_tryupgrade(pp_pages[i]) == 1)
     1375                page_downgrade(pp_pages[i]);
    13741376                pphysaddrs[i] = vbi_page_to_pa(pp_pages, i);
    13751377        }
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