diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2021-11-22 11:29:19 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2021-11-22 11:29:19 +0000 |
commit | b6f4b5a4c8be9a234d7d7a89fa118e23d213dc80 (patch) | |
tree | 8bc6c75ad79c1d1d6f3d2a6a35d4efa94b1d1bb5 /sys/dev/usb/utpms.c | |
parent | 96f0063425dd3a924bfd00eada07e59dadd5d5b2 (diff) |
Add missing claim multiple report ids conditionals to uhidev drivers.
Diffstat (limited to 'sys/dev/usb/utpms.c')
-rw-r--r-- | sys/dev/usb/utpms.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/utpms.c b/sys/dev/usb/utpms.c index 77f5abb1b76..944431eb141 100644 --- a/sys/dev/usb/utpms.c +++ b/sys/dev/usb/utpms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utpms.c,v 1.11 2020/10/23 21:23:58 tobhe Exp $ */ +/* $OpenBSD: utpms.c,v 1.12 2021/11/22 11:29:18 anton Exp $ */ /* * Copyright (c) 2005, Johan Wallén @@ -269,6 +269,9 @@ utpms_match(struct device *parent, void *match, void *aux) usb_interface_descriptor_t *id; int i; + if (UHIDEV_CLAIM_MULTIPLE_REPORTID(uha)) + return (UMATCH_NONE); + id = usbd_get_interface_descriptor(uha->uaa->iface); if (id == NULL || id->bInterfaceSubClass != UISUBCLASS_BOOT || |