Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern minor knf
details: https://anonhg.NetBSD.org/src/rev/41cf92fd9ac2
branches: trunk
changeset: 758258:41cf92fd9ac2
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Oct 29 15:27:50 2010 +0000
description:
minor knf
diffstat:
sys/rump/librump/rumpkern/rumpcopy.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 39e974765c8c -r 41cf92fd9ac2 sys/rump/librump/rumpkern/rumpcopy.c
--- a/sys/rump/librump/rumpkern/rumpcopy.c Fri Oct 29 15:08:17 2010 +0000
+++ b/sys/rump/librump/rumpkern/rumpcopy.c Fri Oct 29 15:27:50 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpcopy.c,v 1.6 2010/10/27 20:44:49 pooka Exp $ */
+/* $NetBSD: rumpcopy.c,v 1.7 2010/10/29 15:27:50 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpcopy.c,v 1.6 2010/10/27 20:44:49 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpcopy.c,v 1.7 2010/10/29 15:27:50 pooka Exp $");
#include <sys/param.h>
#include <sys/lwp.h>
@@ -39,6 +39,7 @@
int
copyin(const void *uaddr, void *kaddr, size_t len)
{
+
if (__predict_false(uaddr == NULL && len)) {
return EFAULT;
}
@@ -54,6 +55,7 @@
int
copyout(const void *kaddr, void *uaddr, size_t len)
{
+
if (__predict_false(uaddr == NULL && len)) {
return EFAULT;
}
Home |
Main Index |
Thread Index |
Old Index