]> git.karo-electronics.de Git - karo-tx-linux.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)
commit42c36f63ac1366ab0ecc2d5717821362c259f517
tree1b711b7f5c1f486a07289edb43db4f99f05d6e5a
parentc191f6ccee11b79fb562c36007a5af31c705c9e2
vm: fix vm_pgoff wrap in upward expansion

Commit a626ca6a6564 ("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