VirtualBox

Changeset 31537 in vbox for trunk


Ignore:
Timestamp:
Aug 10, 2010 3:16:55 PM (14 years ago)
Author:
vboxsync
Message:

Additions/Solaris/SharedFolders: fix a possible panic when file creation fails + logging on failures.

Location:
trunk/src/VBox/Additions/solaris/SharedFolders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_prov.c

    r31012 r31537  
    260260
    261261        if (RT_FAILURE(rc))
    262                 return (EINVAL);
     262        {
     263                cmn_err(CE_NOTE, "sfprov_create: vboxCallCreate failed. path=%s rc=%d\n", path, rc);
     264                return (EINVAL);
     265        }
    263266        if (parms.Handle == SHFL_HANDLE_NIL) {
    264267                if (parms.Result == SHFL_FILE_EXISTS)
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vnode.c

    r30527 r31537  
    12721272        }
    12731273
    1274         if (node->sf_parent)
     1274        if (node && node->sf_parent)
    12751275                sfnode_clear_dir_list(node->sf_parent);
    12761276
    12771277        mutex_exit(&sffs_lock);
    12781278        if (node == NULL)
     1279        {
     1280                cmn_err(CE_NOTE, "sffs_create: sfnode_lookup() failed.\n");
    12791281                return (EINVAL);
     1282        }
    12801283        *vpp = sfnode_get_vnode(node);
    12811284        return (0);
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