[PATCH] sys_mmap doesn't follow posix.1 when parameter len=0

From: Zhang, Yanmin <yanmin.zhang_at_intel.com>
Date: 2005-05-23 10:47:06
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:
The value of len is zero. 

Here is a patch to fix it.

Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>


To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Mon May 23 01:08:38 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:39 EST