From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 9 19:40:37 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94BF616A4CE for ; Mon, 9 Aug 2004 19:40:37 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86AD543D39 for ; Mon, 9 Aug 2004 19:40:37 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i79Jeb1w047132 for ; Mon, 9 Aug 2004 19:40:37 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i79JebLp047131; Mon, 9 Aug 2004 19:40:37 GMT (envelope-from gnats) Date: Mon, 9 Aug 2004 19:40:37 GMT Message-Id: <200408091940.i79JebLp047131@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Anish Mistry Subject: Re: kern/63837: [USB/patch] hid_is_collection() only looks for the first item X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Anish Mistry List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 19:40:37 -0000 The following reply was made to PR kern/63837; it has been noted by GNATS. From: Anish Mistry To: freebsd-gnats-submit@FreeBSD.org, nivit@email.it Cc: Subject: Re: kern/63837: [USB/patch] hid_is_collection() only looks for the first item Date: Mon, 9 Aug 2004 15:35:13 -0400 --Boundary-00=_xH9FBa1n9dLuPwp Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The attached patch is a bit cleaner and closer with the NetBSD code. This= =20 really should be commit before the 5-STABLE branch because it'll fix a bunc= h=20 of non-working combo usb mice. Probably is a good canidate for MFCing to=20 4-STABLE. =2D --=20 Anish Mistry =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBF9H4xqA5ziudZT0RAvc3AKCx5JyRxCP5ZDeZFVp7FMqnVXo8tACfdqk6 U+4IFfL85qsxDqunNV5JfLs=3D =3DRCpN =2D----END PGP SIGNATURE----- --Boundary-00=_xH9FBa1n9dLuPwp Content-Type: text/x-diff; charset="us-ascii"; name="hid-race.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="hid-race.patch" --- /sys/dev/usb/hid.c.orig Sun Jun 20 17:20:03 2004 +++ /sys/dev/usb/hid.c Tue Jun 29 00:51:39 2004 @@ -373,9 +373,10 @@ struct hid_item h; int size, id; + h.report_ID = 0; id = 0; for (d = hid_start_parse(buf, len, 1<