summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authoraugustss <augustss@NetBSD.org>2000-04-06 22:58:32 +0000
committeraugustss <augustss@NetBSD.org>2000-04-06 22:58:32 +0000
commitaf0c0d535aaa4cf4d7525fe11e7df515fbc7fed2 (patch)
tree20ad04e1e3aaceac15093e9092f0df891dfa8d65 /sys/dev/usb
parent744f0f648662e0f0a4f77cacaf4411bfd63e336a (diff)
Fix a bug in HID Pop handling. From UCHIYAMA Yasushi.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/hid.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/hid.c b/sys/dev/usb/hid.c
index 82e32d018bb..ac536d989f0 100644
--- a/sys/dev/usb/hid.c
+++ b/sys/dev/usb/hid.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hid.c,v 1.13 2000/03/27 12:33:53 augustss Exp $ */
+/* $NetBSD: hid.c,v 1.14 2000/04/06 22:58:32 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/hid.c,v 1.11 1999/11/17 22:33:39 n_hibma Exp $ */
/*
@@ -126,7 +126,7 @@ hid_get_item(s, h)
{
struct hid_item *c = &s->cur;
unsigned int bTag, bType, bSize;
- struct hid_location oldloc;
+ u_int32_t oldpos;
u_char *data;
int32_t dval;
u_char *p;
@@ -300,9 +300,9 @@ hid_get_item(s, h)
break;
case 11: /* Pop */
hi = c->next;
- oldloc = c->loc;
+ oldpos = c->loc.pos;
s->cur = *hi;
- c->loc = oldloc;
+ c->loc.pos = oldpos;
free(hi, M_TEMP);
break;
default: