From owner-cvs-src-old@FreeBSD.ORG Sun May 9 09:20:44 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 593331065678 for ; Sun, 9 May 2010 09:20:44 +0000 (UTC) (envelope-from kaiw@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 4815E8FC0C for ; Sun, 9 May 2010 09:20:44 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o499Kiw6067720 for ; Sun, 9 May 2010 09:20:44 GMT (envelope-from kaiw@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o499Kitl067719 for cvs-src-old@freebsd.org; Sun, 9 May 2010 09:20:44 GMT (envelope-from kaiw@repoman.freebsd.org) Message-Id: <201005090920.o499Kitl067719@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kaiw@repoman.freebsd.org using -f From: Kai Wang Date: Sun, 9 May 2010 09:20:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/bluetooth/bthidd hid.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 May 2010 09:20:44 -0000 kaiw 2010-05-09 09:20:25 UTC FreeBSD src repository Modified files: usr.sbin/bluetooth/bthidd hid.c Log: SVN rev 207812 on 2010-05-09 09:20:25Z by kaiw Catch up with libusbhid merge (rev 205728). hid_get_data() now expects that the hid data passed in always contains the report ID byte. Thus we should not skip the the report ID byte in hid_interrupt(). Also, if HUP_KEYBOARD usage is an array, do not try to modify the 'data' pointer, instead, increase the hid_item_t field 'pos' by 'report_size' before calling hid_get_data() during each iteration. PR: usb/146367 Reported and tested by: Alex Deiter Pointy hat to: kaiw Reviewed by: emax Revision Changes Path 1.7 +5 -11 src/usr.sbin/bluetooth/bthidd/hid.c