Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dmover *Actually return* EINVAL when the output stre...
details: https://anonhg.NetBSD.org/src/rev/eb350647bfc1
branches: trunk
changeset: 534829:eb350647bfc1
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Aug 04 01:52:00 2002 +0000
description:
*Actually return* EINVAL when the output stream UIO's I/O is larger
than SSIZE_MAX.
diffstat:
sys/dev/dmover/dmover_io.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e22e3e0b5628 -r eb350647bfc1 sys/dev/dmover/dmover_io.c
--- a/sys/dev/dmover/dmover_io.c Sun Aug 04 01:47:15 2002 +0000
+++ b/sys/dev/dmover/dmover_io.c Sun Aug 04 01:52:00 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dmover_io.c,v 1.3 2002/08/02 06:35:59 thorpej Exp $ */
+/* $NetBSD: dmover_io.c,v 1.4 2002/08/04 01:52:00 thorpej Exp $ */
/*
* Copyright (c) 2002 Wasabi Systems, Inc.
@@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.3 2002/08/02 06:35:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.4 2002/08/04 01:52:00 thorpej Exp $");
#include <sys/param.h>
#include <sys/queue.h>
@@ -158,7 +158,7 @@
len += uio_out->uio_iov[j].iov_len;
if (len > SSIZE_MAX) {
free(uio_out->uio_iov, M_TEMP);
- return (error);
+ return (EINVAL);
}
}
Home |
Main Index |
Thread Index |
Old Index