Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm PR/52384: make uvm_fault_check() return EFAULT not E...
details: https://anonhg.NetBSD.org/src/rev/8e7accbcd15f
branches: trunk
changeset: 355030:8e7accbcd15f
user: christos <christos%NetBSD.org@localhost>
date: Sun Jul 09 20:53:09 2017 +0000
description:
PR/52384: make uvm_fault_check() return EFAULT not EACCES, like our man pages
(but not OpenGroup which does not document EFAULT for read/write, and only
documents EACCES for sockets) say for read/write.
diffstat:
sys/uvm/uvm_fault.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 549396b04ce3 -r 8e7accbcd15f sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c Sun Jul 09 20:21:08 2017 +0000
+++ b/sys/uvm/uvm_fault.c Sun Jul 09 20:53:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_fault.c,v 1.199 2017/03/20 15:51:41 skrll Exp $ */
+/* $NetBSD: uvm_fault.c,v 1.200 2017/07/09 20:53:09 christos Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.199 2017/03/20 15:51:41 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.200 2017/07/09 20:53:09 christos Exp $");
#include "opt_uvmhist.h"
@@ -950,7 +950,7 @@
"<- protection failure (prot=%#x, access=%#x)",
ufi->entry->protection, flt->access_type, 0, 0);
uvmfault_unlockmaps(ufi, false);
- return EACCES;
+ return EFAULT;
}
/*
Home |
Main Index |
Thread Index |
Old Index