OSDN Git Service

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)
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>

No differences found