aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_ioctl.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c
index 0264c8719ffd..67205f6198ba 100644
--- a/fs/xfs/linux-2.6/xfs_ioctl.c
+++ b/fs/xfs/linux-2.6/xfs_ioctl.c
@@ -252,6 +252,7 @@ xfs_open_by_handle(
252 struct file *parfilp, 252 struct file *parfilp,
253 struct inode *parinode) 253 struct inode *parinode)
254{ 254{
255 const struct cred *cred = current_cred();
255 int error; 256 int error;
256 int new_fd; 257 int new_fd;
257 int permflag; 258 int permflag;
@@ -314,7 +315,7 @@ xfs_open_by_handle(
314 mntget(parfilp->f_path.mnt); 315 mntget(parfilp->f_path.mnt);
315 316
316 /* Create file pointer. */ 317 /* Create file pointer. */
317 filp = dentry_open(dentry, parfilp->f_path.mnt, hreq->oflags); 318 filp = dentry_open(dentry, parfilp->f_path.mnt, hreq->oflags, cred);
318 if (IS_ERR(filp)) { 319 if (IS_ERR(filp)) {
319 put_unused_fd(new_fd); 320 put_unused_fd(new_fd);
320 return -XFS_ERROR(-PTR_ERR(filp)); 321 return -XFS_ERROR(-PTR_ERR(filp));