summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-07-23 07:37:45 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-07-23 07:37:45 +0000
commit2d98876c8a839dd128689ca37f013a2218b57904 (patch)
treec9ba367f805e023e55f216a9a07d96c9bb6f650e
parentee4346b1e303dd354583b554029227fe58355cce (diff)
Use the correct buffer for non-zero report IDs in uhidev_set_report().
From Dave Huang via NetBSD rev 1.18. ok miod@ deraadt@
-rw-r--r--sys/dev/usb/uhidev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c
index 9d790043072..b188c027e6a 100644
--- a/sys/dev/usb/uhidev.c
+++ b/sys/dev/usb/uhidev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhidev.c,v 1.34 2009/06/02 21:43:41 miod Exp $ */
+/* $OpenBSD: uhidev.c,v 1.35 2009/07/23 07:37:44 jsg Exp $ */
/* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -599,7 +599,7 @@ uhidev_set_report(struct uhidev *scd, int type, void *data, int len)
memcpy(buf+1, data, len);
retstat = usbd_set_report(scd->sc_parent->sc_iface, type,
- scd->sc_report_id, data, len + 1);
+ scd->sc_report_id, buf, len + 1);
free(buf, M_TEMP);