Module Name:    src
Committed By:   yamt
Date:           Wed Nov 11 13:38:53 UTC 2009

Modified Files:
        src/sys/arch/x86/x86: sys_machdep.c

Log Message:
x86_get_sdbase: copyout to a correct address.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/x86/x86/sys_machdep.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/arch/x86/x86/sys_machdep.c
diff -u src/sys/arch/x86/x86/sys_machdep.c:1.20 src/sys/arch/x86/x86/sys_machdep.c:1.21
--- src/sys/arch/x86/x86/sys_machdep.c:1.20	Wed Jul 29 12:02:06 2009
+++ src/sys/arch/x86/x86/sys_machdep.c	Wed Nov 11 13:38:53 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_machdep.c,v 1.20 2009/07/29 12:02:06 cegger Exp $	*/
+/*	$NetBSD: sys_machdep.c,v 1.21 2009/11/11 13:38:53 yamt Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2007, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.20 2009/07/29 12:02:06 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.21 2009/11/11 13:38:53 yamt Exp $");
 
 #include "opt_mtrr.h"
 #include "opt_perfctrs.h"
@@ -647,7 +647,7 @@
 	}
 
 	base = sd->sd_hibase << 24 | sd->sd_lobase;
-	return copyout(&base, &arg, sizeof(base));
+	return copyout(&base, arg, sizeof(base));
 #else
 	return EINVAL;
 #endif

Reply via email to