summaryrefslogtreecommitdiff
path: root/fs/proc/nommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/nommu.c')
-rw-r--r--fs/proc/nommu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/proc/nommu.c b/fs/proc/nommu.c
index f8595e8b5..cb8eda060 100644
--- a/fs/proc/nommu.c
+++ b/fs/proc/nommu.c
@@ -45,7 +45,10 @@ static int nommu_region_show(struct seq_file *m, struct vm_region *region)
file = region->vm_file;
if (file) {
- struct inode *inode = file_inode(region->vm_file);
+ struct inode *inode;
+
+ file = vmr_pr_or_file(region);
+ inode = file_inode(file);
dev = inode->i_sb->s_dev;
ino = inode->i_ino;
}