diff options
Diffstat (limited to 'fs/ecryptfs/main.c')
-rw-r--r-- | fs/ecryptfs/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index c095d3264259..4f4d0474bee9 100644 --- a/fs/ecryptfs/main.c +++ b/fs/ecryptfs/main.c | |||
@@ -546,11 +546,11 @@ static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags | |||
546 | goto out_free; | 546 | goto out_free; |
547 | } | 547 | } |
548 | 548 | ||
549 | if (check_ruid && !uid_eq(path.dentry->d_inode->i_uid, current_uid())) { | 549 | if (check_ruid && !uid_eq(d_inode(path.dentry)->i_uid, current_uid())) { |
550 | rc = -EPERM; | 550 | rc = -EPERM; |
551 | printk(KERN_ERR "Mount of device (uid: %d) not owned by " | 551 | printk(KERN_ERR "Mount of device (uid: %d) not owned by " |
552 | "requested user (uid: %d)\n", | 552 | "requested user (uid: %d)\n", |
553 | i_uid_read(path.dentry->d_inode), | 553 | i_uid_read(d_inode(path.dentry)), |
554 | from_kuid(&init_user_ns, current_uid())); | 554 | from_kuid(&init_user_ns, current_uid())); |
555 | goto out_free; | 555 | goto out_free; |
556 | } | 556 | } |
@@ -584,7 +584,7 @@ static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags | |||
584 | goto out_free; | 584 | goto out_free; |
585 | } | 585 | } |
586 | 586 | ||
587 | inode = ecryptfs_get_inode(path.dentry->d_inode, s); | 587 | inode = ecryptfs_get_inode(d_inode(path.dentry), s); |
588 | rc = PTR_ERR(inode); | 588 | rc = PTR_ERR(inode); |
589 | if (IS_ERR(inode)) | 589 | if (IS_ERR(inode)) |
590 | goto out_free; | 590 | goto out_free; |