From: Zhang Yanmin Date: Mon, 23 May 2005 00:47:00 +0000 (-0700) Subject: [IA64] sys_mmap doesn't follow posix.1 when parameter len=0 X-Git-Tag: v2.6.12-rc6~76^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d11cf326bd5e785cc5a3f5a3d3f4e3a5522f4fb7;p=pandora-kernel.git [IA64] sys_mmap doesn't follow posix.1 when parameter len=0 In IA64 kernel, sys_mmap calls do_mmap2 and do_mmap2 returns addr if len=0, which means the mmap sys call succeeds. Posix.1 says: The mmap() function shall fail if: [EINVAL] The value of len is zero. Here is a patch to fix it. Signed-off-by: Zhang Yanmin Acked-by: David Mosberger Signed-off-by: Tony Luck --- Reading git-diff-tree failed