Module Name: src Committed By: bouyer Date: Sun Jan 13 16:29:00 UTC 2013
Modified Files: src/sys/dev/usb [netbsd-5-0]: ubsa_common.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #1830): sys/dev/usb/ubsa_common.c: revision 1.9 Fix off by one read error. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.4.14.1 src/sys/dev/usb/ubsa_common.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/usb/ubsa_common.c diff -u src/sys/dev/usb/ubsa_common.c:1.4 src/sys/dev/usb/ubsa_common.c:1.4.14.1 --- src/sys/dev/usb/ubsa_common.c:1.4 Sat May 24 16:40:58 2008 +++ src/sys/dev/usb/ubsa_common.c Sun Jan 13 16:29:00 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: ubsa_common.c,v 1.4 2008/05/24 16:40:58 cube Exp $ */ +/* $NetBSD: ubsa_common.c,v 1.4.14.1 2013/01/13 16:29:00 bouyer Exp $ */ /*- * Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>. * All rights reserved. @@ -54,7 +54,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ubsa_common.c,v 1.4 2008/05/24 16:40:58 cube Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ubsa_common.c,v 1.4.14.1 2013/01/13 16:29:00 bouyer Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -112,7 +112,7 @@ ubsa_request(struct ubsa_softc *sc, int else req.bmRequestType = UT_WRITE_VENDOR_DEVICE; - if (portno > UBSA_MAXCONN) { + if (portno >= UBSA_MAXCONN) { printf("%s: ubsa_request: invalid port(%d)#\n", USBDEVNAME(sc->sc_dev), portno); return USBD_INVAL;