diff options
-rw-r--r-- | arch/arc/kernel/troubleshoot.c | 2 | ||||
-rw-r--r-- | drivers/staging/android/logger.c | 2 | ||||
-rw-r--r-- | net/sunrpc/auth_gss/svcauth_gss.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/arc/kernel/troubleshoot.c b/arch/arc/kernel/troubleshoot.c index 11c301b81c92..a03528ecd276 100644 --- a/arch/arc/kernel/troubleshoot.c +++ b/arch/arc/kernel/troubleshoot.c | |||
@@ -101,7 +101,7 @@ static void show_faulting_vma(unsigned long address, char *buf) | |||
101 | if (file) { | 101 | if (file) { |
102 | struct path *path = &file->f_path; | 102 | struct path *path = &file->f_path; |
103 | nm = d_path(path, buf, PAGE_SIZE - 1); | 103 | nm = d_path(path, buf, PAGE_SIZE - 1); |
104 | inode = vma->vm_file->f_path.dentry->d_inode; | 104 | inode = file_inode(vma->vm_file); |
105 | dev = inode->i_sb->s_dev; | 105 | dev = inode->i_sb->s_dev; |
106 | ino = inode->i_ino; | 106 | ino = inode->i_ino; |
107 | } | 107 | } |
diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c index 9bd874789ce5..080abf2faf97 100644 --- a/drivers/staging/android/logger.c +++ b/drivers/staging/android/logger.c | |||
@@ -696,7 +696,7 @@ static long logger_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
696 | ret = -EBADF; | 696 | ret = -EBADF; |
697 | break; | 697 | break; |
698 | } | 698 | } |
699 | if (!(in_egroup_p(file->f_dentry->d_inode->i_gid) || | 699 | if (!(in_egroup_p(file_inode(file)->i_gid) || |
700 | capable(CAP_SYSLOG))) { | 700 | capable(CAP_SYSLOG))) { |
701 | ret = -EPERM; | 701 | ret = -EPERM; |
702 | break; | 702 | break; |
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index 29b4ba93ab3c..b05ace4c5f12 100644 --- a/net/sunrpc/auth_gss/svcauth_gss.c +++ b/net/sunrpc/auth_gss/svcauth_gss.c | |||
@@ -1330,7 +1330,7 @@ static int wait_for_gss_proxy(struct net *net, struct file *file) | |||
1330 | static ssize_t write_gssp(struct file *file, const char __user *buf, | 1330 | static ssize_t write_gssp(struct file *file, const char __user *buf, |
1331 | size_t count, loff_t *ppos) | 1331 | size_t count, loff_t *ppos) |
1332 | { | 1332 | { |
1333 | struct net *net = PDE_DATA(file->f_path.dentry->d_inode); | 1333 | struct net *net = PDE_DATA(file_inode(file)); |
1334 | char tbuf[20]; | 1334 | char tbuf[20]; |
1335 | unsigned long i; | 1335 | unsigned long i; |
1336 | int res; | 1336 | int res; |
@@ -1358,7 +1358,7 @@ static ssize_t write_gssp(struct file *file, const char __user *buf, | |||
1358 | static ssize_t read_gssp(struct file *file, char __user *buf, | 1358 | static ssize_t read_gssp(struct file *file, char __user *buf, |
1359 | size_t count, loff_t *ppos) | 1359 | size_t count, loff_t *ppos) |
1360 | { | 1360 | { |
1361 | struct net *net = PDE_DATA(file->f_path.dentry->d_inode); | 1361 | struct net *net = PDE_DATA(file_inode(file)); |
1362 | unsigned long p = *ppos; | 1362 | unsigned long p = *ppos; |
1363 | char tbuf[10]; | 1363 | char tbuf[10]; |
1364 | size_t len; | 1364 | size_t len; |