Module Name: src
Committed By: christos
Date: Mon Dec 6 16:22:57 UTC 2010
Modified Files:
src/sys/dev: rnd.c
Log Message:
change E2BIG -> EINVAL, clearly "argument list too long" is the wrong message
to print.
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/dev/rnd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/rnd.c
diff -u src/sys/dev/rnd.c:1.79 src/sys/dev/rnd.c:1.80
--- src/sys/dev/rnd.c:1.79 Sat Dec 4 12:39:50 2010
+++ src/sys/dev/rnd.c Mon Dec 6 11:22:57 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: rnd.c,v 1.79 2010/12/04 17:39:50 pooka Exp $ */
+/* $NetBSD: rnd.c,v 1.80 2010/12/06 16:22:57 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.79 2010/12/04 17:39:50 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.80 2010/12/06 16:22:57 christos Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -663,7 +663,7 @@
rnddata = (rnddata_t *)addr;
if (rnddata->len > sizeof(rnddata->data))
- return E2BIG;
+ return EINVAL;
mutex_enter(&rndpool_mtx);
rndpool_add_data(&rnd_pool, rnddata->data, rnddata->len,