VirtualBox

Changeset 57594 in vbox


Ignore:
Timestamp:
Sep 2, 2015 9:43:47 AM (9 years ago)
Author:
vboxsync
Message:

HostDrivers/VBoxPci: enclose find_module() calls by mutex_lock/unlock as required by Linux 4.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c

    r57372 r57594  
    150150# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30)
    151151        /* find_module() is static before Linux 2.6.30 */
     152        mutex_lock(&module_mutex);
    152153        g_VBoxPciGlobals.pciStubModule = find_module(PCI_STUB_MODULE_NAME);
     154        mutex_unlock(&module_mutex);
    153155        if (g_VBoxPciGlobals.pciStubModule)
    154156        {
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