aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/kernel/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/kernel/traps.c')
-rw-r--r--arch/blackfin/kernel/traps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c
index 8823e9ade584..afd044e78af6 100644
--- a/arch/blackfin/kernel/traps.c
+++ b/arch/blackfin/kernel/traps.c
@@ -118,12 +118,14 @@ static int printk_address(unsigned long address)
118 offset = (address - vma->vm_start) + (vma->vm_pgoff << PAGE_SHIFT); 118 offset = (address - vma->vm_start) + (vma->vm_pgoff << PAGE_SHIFT);
119 119
120 write_unlock_irq(&tasklist_lock); 120 write_unlock_irq(&tasklist_lock);
121 mmput(mm);
121 return printk("<0x%p> [ %s + 0x%lx ]", 122 return printk("<0x%p> [ %s + 0x%lx ]",
122 (void *)address, name, offset); 123 (void *)address, name, offset);
123 } 124 }
124 125
125 vml = vml->next; 126 vml = vml->next;
126 } 127 }
128 mmput(mm);
127 } 129 }
128 write_unlock_irq(&tasklist_lock); 130 write_unlock_irq(&tasklist_lock);
129 131