Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/dev/usb Pull up following revision(s) (requested by m...
details: https://anonhg.NetBSD.org/src/rev/067b319dcb75
branches: netbsd-6
changeset: 775602:067b319dcb75
user: riz <riz%NetBSD.org@localhost>
date: Sat Jan 05 23:11:59 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 823597c5b521 -r 067b319dcb75 sys/dev/usb/ubsa_common.c
--- a/sys/dev/usb/ubsa_common.c Sat Jan 05 23:10:31 2013 +0000
+++ b/sys/dev/usb/ubsa_common.c Sat Jan 05 23:11:59 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.2.1 2013/01/05 23:11:59 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.2.1 2013/01/05 23:11:59 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