Date: Thu, 24 May 2012 01:24:50 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r235867 - in stable/8: lib/libusbhid sys/dev/usb Message-ID: <201205240124.q4O1OoOS006530@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Thu May 24 01:24:49 2012 New Revision: 235867 URL: http://svn.freebsd.org/changeset/base/235867 Log: MFC r235510: HID Report ID is unsigned value, so clear the rest of bits from possible sign expansion. Modified: stable/8/lib/libusbhid/parse.c stable/8/sys/dev/usb/usb_hid.c Directory Properties: stable/8/lib/libusbhid/ (props changed) stable/8/sys/ (props changed) Modified: stable/8/lib/libusbhid/parse.c ============================================================================== --- stable/8/lib/libusbhid/parse.c Thu May 24 01:23:30 2012 (r235866) +++ stable/8/lib/libusbhid/parse.c Thu May 24 01:24:49 2012 (r235867) @@ -392,7 +392,7 @@ hid_get_item(hid_data_t s, hid_item_t *h s->loc_size = dval & mask; break; case 8: - hid_switch_rid(s, c, dval); + hid_switch_rid(s, c, dval & mask); break; case 9: /* mask because value is unsigned */ Modified: stable/8/sys/dev/usb/usb_hid.c ============================================================================== --- stable/8/sys/dev/usb/usb_hid.c Thu May 24 01:23:30 2012 (r235866) +++ stable/8/sys/dev/usb/usb_hid.c Thu May 24 01:24:49 2012 (r235867) @@ -425,7 +425,7 @@ hid_get_item(struct hid_data *s, struct s->loc_size = dval & mask; break; case 8: - hid_switch_rid(s, c, dval); + hid_switch_rid(s, c, dval & mask); break; case 9: /* mask because value is unsigned */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205240124.q4O1OoOS006530>