]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: fix bug in brk()
authorRam Gupta <ram.gupta5@gmail.com>
Tue, 11 Apr 2006 05:52:57 +0000 (22:52 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:32 +0000 (06:18 -0700)
commitdbfb7c499b6da542cbe0e8ecce8d2b12215d31ec
tree4196ccebe125c17dabc011422c6ff251835d1933
parentc80b52f3779fb906b1a85fbf22711e0b0f8573a0
[PATCH] mm: fix bug in brk()

The code checks for newbrk with oldbrk which are page aligned before making
a check for the memory limit set of data segment.  If the memory limit is
not page aligned in that case it bypasses the test for the limit if the
memory allocation is still for the same page.

Signed-off-by: Ram Gupta <ram.gupta5@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mmap.c