Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c1e7399da76646f34c3857147cca649cd58745af
Commit:     c1e7399da76646f34c3857147cca649cd58745af
Parent:     eaa854902aaeeade4a28cc8987de2b2ce182003b
Author:     Bernd Schmidt <[EMAIL PROTECTED]>
AuthorDate: Sun Oct 21 22:32:27 2007 +0800
Committer:  Bryan Wu <[EMAIL PROTECTED]>
CommitDate: Sun Oct 21 22:32:27 2007 +0800

    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 <[EMAIL PROTECTED]>
---
 arch/blackfin/kernel/traps.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c
index 8823e9a..afd044e 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);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to