VirtualBox

Changeset 90873 in vbox


Ignore:
Timestamp:
Aug 25, 2021 11:29:33 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146508
Message:

Solaris host: bugref:10089 VBoxNetFltBow: Fixed getinfo() callback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c

    r90804 r90873  
    434434        {
    435435            *ppvResult = g_pVBoxNetFltSolarisDip;
    436             return DDI_SUCCESS;
     436            return *ppvResult ? DDI_SUCCESS : DDI_FAILURE;
    437437        }
    438438
    439439        case DDI_INFO_DEVT2INSTANCE:
    440440        {
    441             int instance = getminor((dev_t)pvArg);
    442             *ppvResult = (void *)(uintptr_t)instance;
    443             return DDI_SUCCESS;
     441            /* There can only be a single-instance of this driver and thus its instance number is 0. */
     442            *ppvResult = (void *)0;
     443            break;
    444444        }
    445445    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette