From ee96cde23ab43ea94bc844507f3623a3c19b7804 Mon Sep 17 00:00:00 2001 From: hselasky Date: Tue, 9 Jun 2020 22:15:45 +0000 Subject: [PATCH] Adapt merge of r361581 to 9-stable to unbreak kernel compilation. This is a direct commit. Sponsored by: Mellanox Technologies git-svn-id: svn://svn.freebsd.org/base/stable/9@361989 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/usb/usb_transfer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/usb/usb_transfer.c b/sys/dev/usb/usb_transfer.c index 04f306fc3..8a3855a9c 100644 --- a/sys/dev/usb/usb_transfer.c +++ b/sys/dev/usb/usb_transfer.c @@ -354,8 +354,7 @@ usbd_get_max_frame_length(const struct usb_endpoint_descriptor *edesc, if (ecomp != NULL) { uint8_t mult; - mult = UE_GET_SS_ISO_MULT( - ecomp->bmAttributes) + 1; + mult = (ecomp->bmAttributes & 3) + 1; if (mult > 3) mult = 3; -- 2.42.0