Module Name: src Committed By: uwe Date: Tue Jun 9 01:35:11 UTC 2009
Modified Files: src/sys/arch/sh3/sh3: locore_subr.S Log Message: Fix logic error in copyinstr() when deciding whether to return EFAULT or ENAMETOOLONG. >From OpenBSD revision 1.9 by miod@ To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/arch/sh3/sh3/locore_subr.S 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/sh3/sh3/locore_subr.S diff -u src/sys/arch/sh3/sh3/locore_subr.S:1.51 src/sys/arch/sh3/sh3/locore_subr.S:1.52 --- src/sys/arch/sh3/sh3/locore_subr.S:1.51 Tue Jun 9 00:24:51 2009 +++ src/sys/arch/sh3/sh3/locore_subr.S Tue Jun 9 01:35:11 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: locore_subr.S,v 1.51 2009/06/09 00:24:51 uwe Exp $ */ +/* $NetBSD: locore_subr.S,v 1.52 2009/06/09 01:35:11 uwe Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -40,7 +40,7 @@ #include <sh3/mmu_sh3.h> #include <sh3/mmu_sh4.h> -__KERNEL_RCSID(0, "$NetBSD: locore_subr.S,v 1.51 2009/06/09 00:24:51 uwe Exp $") +__KERNEL_RCSID(0, "$NetBSD: locore_subr.S,v 1.52 2009/06/09 01:35:11 uwe Exp $") /* @@ -670,7 +670,7 @@ cmp/eq #-1, r0 bf 1b mov.l .L_copyinstr_VM_MAXUSER_ADDRESS, r1 - cmp/hs r1, r5 + cmp/hs r1, r4 bt 3f mov #ENAMETOOLONG, r3