VirtualBox

Changeset 17344 in vbox


Ignore:
Timestamp:
Mar 4, 2009 1:29:01 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43727
Message:

Linux netflt: prevent removing of the vboxnetflt module if a host interface is active

File:
1 edited

Legend:

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

    r17188 r17344  
    11411141    Log(("vboxNetFltOsDeleteInstance: this=%p: Notifier removed.\n", pThis));
    11421142    unregister_netdevice_notifier(&pThis->u.s.Notifier);
     1143    module_put(THIS_MODULE);
    11431144}
    11441145
     
    11471148{
    11481149    int err;
     1150    NOREF(pvContext);
     1151
    11491152    pThis->u.s.Notifier.notifier_call = vboxNetFltLinuxNotifierCallback;
    11501153    err = register_netdevice_notifier(&pThis->u.s.Notifier);
     
    11591162
    11601163    Log(("vboxNetFltOsInitInstance: this=%p: Notifier installed.\n", pThis));
    1161     NOREF(pvContext);
    1162     return pThis->fDisconnectedFromHost ? VERR_INTNET_FLT_IF_FAILED : VINF_SUCCESS;
     1164    if (!pThis->fDisconnectedFromHost)
     1165    {
     1166        __module_get(THIS_MODULE);
     1167        return VINF_SUCCESS;
     1168    }
     1169 
     1170    return VERR_INTNET_FLT_IF_FAILED;
    11631171}
    11641172
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