Module Name: src Committed By: jakllsch Date: Mon Jan 21 20:20:32 UTC 2013
Modified Files: src/sys/arch/evbarm/evbarm: autoconf.c Log Message: Correct off-by-one in validation of booted partition number. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/evbarm/evbarm/autoconf.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/evbarm/evbarm/autoconf.c diff -u src/sys/arch/evbarm/evbarm/autoconf.c:1.15 src/sys/arch/evbarm/evbarm/autoconf.c:1.16 --- src/sys/arch/evbarm/evbarm/autoconf.c:1.15 Sun Dec 2 18:22:45 2012 +++ src/sys/arch/evbarm/evbarm/autoconf.c Mon Jan 21 20:20:32 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.15 2012/12/02 18:22:45 msaitoh Exp $ */ +/* $NetBSD: autoconf.c,v 1.16 2013/01/21 20:20:32 jakllsch Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.15 2012/12/02 18:22:45 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.16 2013/01/21 20:20:32 jakllsch Exp $"); #include "opt_md.h" @@ -79,7 +79,7 @@ get_device(char *name) if (cp == name) return; - if (*cp >= 'a' && *cp <= ('a' + MAXPARTITIONS)) + if (*cp >= 'a' && *cp < ('a' + MAXPARTITIONS)) part = *cp - 'a'; else if (*cp != '\0' && *cp != ' ') return;