From: Bernd Schmidt Date: Sun, 21 Oct 2007 14:32:27 +0000 (+0800) Subject: Blackfin arch: Fixing Bug: balance calls to get_task_mm with corresponding mmput... X-Git-Tag: v2.6.24-rc1~115^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c1e7399da76646f34c3857147cca649cd58745af;p=linux-2.6-omap-h63xx.git Blackfin arch: Fixing Bug: balance calls to get_task_mm with corresponding mmput calls We must balance calls to get_task_mm with corresponding mmput calls, otherwise refcounting is screwed up and mms don't get freed when their task exits. Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c index 8823e9ade58..afd044e78af 100644 --- a/arch/blackfin/kernel/traps.c +++ b/arch/blackfin/kernel/traps.c @@ -118,12 +118,14 @@ static int printk_address(unsigned long address) offset = (address - vma->vm_start) + (vma->vm_pgoff << PAGE_SHIFT); write_unlock_irq(&tasklist_lock); + mmput(mm); return printk("<0x%p> [ %s + 0x%lx ]", (void *)address, name, offset); } vml = vml->next; } + mmput(mm); } write_unlock_irq(&tasklist_lock);