diff options
author | Aaron Bieber <abieber@cvs.openbsd.org> | 2021-08-06 17:46:46 +0000 |
---|---|---|
committer | Aaron Bieber <abieber@cvs.openbsd.org> | 2021-08-06 17:46:46 +0000 |
commit | 6b2093b5add8096ccbfb6cc636e4da60631c0a38 (patch) | |
tree | 13e3e1048c5e532f6fe165dae6855567c37a52c0 /sys | |
parent | 4b93dd0708d3a8f1a050726eeed5baeec01df657 (diff) |
Mark matching reportIDs as claimed.
This fixes a panic that was reported on misc@ and bugs@ by
Mike <the.lists () mgm51 ! com> and
Anindya Mukherjee <anindya49 () hotmail ! com>
OK jcs@, thanks to mpi@/jcs@ for the pointers!
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/upd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/upd.c b/sys/dev/usb/upd.c index ad65b77718b..b4eb6f9bb31 100644 --- a/sys/dev/usb/upd.c +++ b/sys/dev/usb/upd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: upd.c,v 1.29 2021/03/08 14:35:57 jcs Exp $ */ +/* $OpenBSD: upd.c,v 1.30 2021/08/06 17:46:45 abieber Exp $ */ /* * Copyright (c) 2015 David Higgs <higgsd@gmail.com> @@ -167,7 +167,7 @@ upd_match(struct device *parent, void *match, void *aux) if (upd_lookup_usage_entry(desc, size, upd_usage_roots + i, &item)) { ret = UMATCH_VENDOR_PRODUCT; - break; + uha->claimed[item.report_ID] = 1; } return (ret); |