struct file *filp;
path.mnt = mnt;
path.dentry = dp;
+ /* note that dentry_open will path_get for us */
filp = dentry_open(&path, flags, creds);
return filp;
#else
- return dentry_open(dp, mnt, flags, creds);
+ return dentry_open(dget(dp), mntget(mnt), flags, creds);
#endif
}
#endif