[PATCH] RLIMIT_MEMLOCK checking fix
authorChris Wright <chrisw@osdl.org>
Sun, 1 May 2005 15:58:38 +0000 (08:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:58:38 +0000 (08:58 -0700)
commit93ea1d0a12623dc1a693642b5758261f35f9bf96
tree4938d87a7d269f7b3e53328d02eac259cb93515a
parentedfbe2b0038723e5699ab22695ccd62b5542a5c1
[PATCH] RLIMIT_MEMLOCK checking fix

Always use page counts when doing RLIMIT_MEMLOCK checking to avoid possible
overflow.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mmap.c