aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>2000-04-02 23:15:08 +0000
committerNick Hibma <n_hibma@FreeBSD.org>2000-04-02 23:15:08 +0000
commitc7de838d3749f85ceb6b713474c688922eee000d (patch)
tree5d54260c9fcfbdf431809cb22ba2f2114b8f03ba /sys/dev
parentdc886d4d7726ca2d56ea7de12a21854bf5ba0c50 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/hid.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/usb/hid.c b/sys/dev/usb/hid.c
index 32b8cf488d44..d99f59c57eeb 100644
--- a/sys/dev/usb/hid.c
+++ b/sys/dev/usb/hid.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hid.c,v 1.9 1999/10/13 08:10:55 augustss Exp $ */
+/* $NetBSD: hid.c,v 1.13 2000/03/27 12:33:53 augustss Exp $ */
/* $FreeBSD$ */
/*
@@ -125,7 +125,8 @@ hid_get_item(s, h)
struct hid_item *h;
{
struct hid_item *c = &s->cur;
- int bTag, bType, bSize;
+ unsigned int bTag, bType, bSize;
+ struct hid_location oldloc;
u_char *data;
int32_t dval;
u_char *p;
@@ -299,7 +300,9 @@ hid_get_item(s, h)
break;
case 11: /* Pop */
hi = c->next;
+ oldloc = c->loc;
s->cur = *hi;
+ c->loc = oldloc;
free(hi, M_TEMP);
break;
default: