]> git.baikalelectronics.ru Git - kernel.git/commit
vm: fix vm_pgoff wrap in upward expansion
authorHugh Dickins <hughd@google.com>
Tue, 10 May 2011 00:44:42 +0000 (17:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 May 2011 00:52:17 +0000 (17:52 -0700)
commit51bed59c10993c43a46895073cf6f168be8c4b3f
tree1b711b7f5c1f486a07289edb43db4f99f05d6e5a
parent50e362ad025e5081d095184eb4ddc0a627ced7ae
vm: fix vm_pgoff wrap in upward expansion

Commit dcd3baf9a2d9 ("vm: fix vm_pgoff wrap in stack expansion") fixed
the case of an expanding mapping causing vm_pgoff wrapping when you had
downward stack expansion.  But there was another case where IA64 and
PA-RISC expand mappings: upward expansion.

This fixes that case too.

Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c