[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)
commit1e624196f43c3a62122959e15c5f03572cdadb5d
tree4196ccebe125c17dabc011422c6ff251835d1933
parentd6fef9da19b7acd46e04b7dbbba726b3febeca94
[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