Skip to content

Commit

Permalink
Blackfin arch: Fixing Bug: balance calls to get_task_mm with correspo…
Browse files Browse the repository at this point in the history
…nding 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 <bryan.wu@analog.com>
  • Loading branch information
Bernd Schmidt authored and Bryan Wu committed Oct 21, 2007
1 parent eaa8549 commit c1e7399
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/blackfin/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c1e7399

Please sign in to comment.