]> git.baikalelectronics.ru Git - kernel.git/commit
mmap: EINVAL not ENOMEM when rejecting VM_GROWS
authorHugh Dickins <hughd@google.com>
Tue, 6 Mar 2012 20:28:52 +0000 (12:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Mar 2012 21:49:08 +0000 (13:49 -0800)
commit8bf5080ceb2efefdc42415e54f28909cde76a55f
tree7d8696e506db022aa03f5927c9593db4df1ac2b8
parent06b26cd2deac16621ac1179c985177d5c10e6296
mmap: EINVAL not ENOMEM when rejecting VM_GROWS

Currently error is -ENOMEM when rejecting VM_GROWSDOWN|VM_GROWSUP
from shared anonymous: hoist the file case's -EINVAL up for both.

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