Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/bktr Correct wrong error return in mmap fn.
details: https://anonhg.NetBSD.org/src/rev/16dbcf31f6b5
branches: trunk
changeset: 504451:16dbcf31f6b5
user: mjl <mjl%NetBSD.org@localhost>
date: Sat Mar 03 00:08:05 2001 +0000
description:
Correct wrong error return in mmap fn.
diffstat:
sys/dev/pci/bktr/bktr_core.c | 2 +-
sys/dev/pci/bktr/bktr_os.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 72bbe43af55f -r 16dbcf31f6b5 sys/dev/pci/bktr/bktr_core.c
--- a/sys/dev/pci/bktr/bktr_core.c Fri Mar 02 22:53:20 2001 +0000
+++ b/sys/dev/pci/bktr/bktr_core.c Sat Mar 03 00:08:05 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bktr_core.c,v 1.16 2001/03/01 22:53:13 mjl Exp $ */
+/* $NetBSD: bktr_core.c,v 1.17 2001/03/03 00:08:05 mjl Exp $ */
/* FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp */
diff -r 72bbe43af55f -r 16dbcf31f6b5 sys/dev/pci/bktr/bktr_os.c
--- a/sys/dev/pci/bktr/bktr_os.c Fri Mar 02 22:53:20 2001 +0000
+++ b/sys/dev/pci/bktr/bktr_os.c Sat Mar 03 00:08:05 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bktr_os.c,v 1.17 2000/12/30 17:02:53 wiz Exp $ */
+/* $NetBSD: bktr_os.c,v 1.18 2001/03/03 00:08:06 mjl Exp $ */
/* FreeBSD: src/sys/dev/bktr/bktr_os.c,v 1.20 2000/10/20 08:16:53 roger Exp */
@@ -760,7 +760,7 @@
bktr = (struct bktr_softc*)devclass_get_softc(bktr_devclass, unit);
if (bktr == NULL) {
/* the device is no longer valid/functioning */
- return (ENXIO);
+ return (-1);
}
if (nprot & PROT_EXEC)
Home |
Main Index |
Thread Index |
Old Index