diff options
Diffstat (limited to 'arch/blackfin/kernel/traps.c')
-rw-r--r-- | arch/blackfin/kernel/traps.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c index 58717cb19707..56a67ab698c7 100644 --- a/arch/blackfin/kernel/traps.c +++ b/arch/blackfin/kernel/traps.c | |||
@@ -126,15 +126,13 @@ static void decode_address(char *buf, unsigned long address) | |||
126 | struct vm_area_struct *vma = vml->vma; | 126 | struct vm_area_struct *vma = vml->vma; |
127 | 127 | ||
128 | if (address >= vma->vm_start && address < vma->vm_end) { | 128 | if (address >= vma->vm_start && address < vma->vm_end) { |
129 | char _tmpbuf[256]; | ||
129 | char *name = p->comm; | 130 | char *name = p->comm; |
130 | struct file *file = vma->vm_file; | 131 | struct file *file = vma->vm_file; |
131 | if (file) { | 132 | |
132 | char _tmpbuf[256]; | 133 | if (file) |
133 | name = d_path(file->f_dentry, | 134 | name = d_path(&file->f_path, _tmpbuf, |
134 | file->f_vfsmnt, | 135 | sizeof(_tmpbuf)); |
135 | _tmpbuf, | ||
136 | sizeof(_tmpbuf)); | ||
137 | } | ||
138 | 136 | ||
139 | /* FLAT does not have its text aligned to the start of | 137 | /* FLAT does not have its text aligned to the start of |
140 | * the map while FDPIC ELF does ... | 138 | * the map while FDPIC ELF does ... |