aboutsummaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r--fs/binfmt_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index ff9dbc630efa..a5702d74d2bd 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -1141,7 +1141,7 @@ static unsigned long vma_dump_size(struct vm_area_struct *vma,
1141 1141
1142 /* By default, dump shared memory if mapped from an anonymous file. */ 1142 /* By default, dump shared memory if mapped from an anonymous file. */
1143 if (vma->vm_flags & VM_SHARED) { 1143 if (vma->vm_flags & VM_SHARED) {
1144 if (vma->vm_file->f_path.dentry->d_inode->i_nlink == 0 ? 1144 if (file_inode(vma->vm_file)->i_nlink == 0 ?
1145 FILTER(ANON_SHARED) : FILTER(MAPPED_SHARED)) 1145 FILTER(ANON_SHARED) : FILTER(MAPPED_SHARED))
1146 goto whole; 1146 goto whole;
1147 return 0; 1147 return 0;