Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6-0]: src/sys/dev/usb Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/a4b83034d041
branches:  netbsd-6-0
changeset: 774734:a4b83034d041
user:      riz <riz%NetBSD.org@localhost>
date:      Sat Jan 05 23:12:09 2013 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #761):
        sys/dev/usb/ubsa_common.c: revision 1.9
Fix off by one read error.

diffstat:

 sys/dev/usb/ubsa_common.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 675a77f8415d -r a4b83034d041 sys/dev/usb/ubsa_common.c
--- a/sys/dev/usb/ubsa_common.c Mon Dec 17 18:49:08 2012 +0000
+++ b/sys/dev/usb/ubsa_common.c Sat Jan 05 23:12:09 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ubsa_common.c,v 1.7 2011/12/23 00:51:45 jakllsch Exp $ */
+/*     $NetBSD: ubsa_common.c,v 1.7.6.1 2013/01/05 23:12:09 riz 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.7 2011/12/23 00:51:45 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ubsa_common.c,v 1.7.6.1 2013/01/05 23:12:09 riz Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -112,7 +112,7 @@
        else
                req.bmRequestType = UT_WRITE_VENDOR_DEVICE;
 
-       if (portno > UBSA_MAXCONN) {
+       if (portno >= UBSA_MAXCONN) {
                printf("%s: ubsa_request: invalid port(%d)#\n",
                        device_xname(sc->sc_dev), portno);
                return USBD_INVAL; 



Home | Main Index | Thread Index | Old Index