From f517adcf6d85aa7de4edaea3ccc00228bd925550 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sun, 25 Aug 2024 20:19:33 +0800 Subject: fix(port/bl): overflow check --- port/bouffalolab/usb_dc_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/bouffalolab/usb_dc_bl.c b/port/bouffalolab/usb_dc_bl.c index 5ed0892d..b6859f8d 100644 --- a/port/bouffalolab/usb_dc_bl.c +++ b/port/bouffalolab/usb_dc_bl.c @@ -655,7 +655,7 @@ int usbd_ep_open(uint8_t busid, const struct usb_endpoint_descriptor *ep) uint8_t ep_idx = USB_EP_GET_IDX(ep_addr); - if ((ep_idx > 4) && (ep_idx < 9)) { + if (ep_idx > 4) { return 0; } -- cgit v1.3.1