VirtualBox

Changeset 40735 in vbox


Ignore:
Timestamp:
Apr 1, 2012 9:28:43 PM (13 years ago)
Author:
vboxsync
Message:

Additions/linux/sharefolders: linux 3.4-rc1: d_make_root is correct here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c

    r40734 r40735  
    199199    SHFLFSOBJINFO fsinfo;
    200200    struct vbsf_mount_info_new *info;
     201    bool fInodePut = true;
    201202
    202203    TRACE();
     
    296297
    297298#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
    298     droot = d_obtain_alias(iroot);
     299    droot = d_make_root(iroot);
    299300#else
    300301    droot = d_alloc_root(iroot);
     
    304305        err = -ENOMEM;  /* XXX */
    305306        LogFunc(("d_alloc_root failed\n"));
     307#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
     308        fInodePut = false;
     309#endif
    306310        goto fail5;
    307311    }
     
    315319
    316320fail4:
    317     iput(iroot);
     321    if (fInodePut)
     322        iput(iroot);
    318323
    319324fail3:
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