提交 ee636500 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

mmap_frag() users only check for -1 error

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 a0f291fc
......@@ -243,7 +243,7 @@ static int mmap_frag(abi_ulong real_start,
possible while it is a shared mapping */
if ((flags & MAP_TYPE) == MAP_SHARED &&
(prot & PROT_WRITE))
return -EINVAL;
return -1;
/* adjust protection to be able to read */
if (!(prot1 & PROT_WRITE))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册