summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-02-01 23:00:10 +0700
committerGitHub <[email protected]>2022-02-01 23:00:10 +0700
commitc6cde724f617c73b827e7b2a1229e21aefc78ff3 (patch)
treec856781481f9d53cbc743c76313613d8f03bdbb7 /src
parentd56bbbb5a774fba8bc7663c7efa7dfa152db68b5 (diff)
parent453ba529a6db41ad9e0e8cbfdedfcb48b059693e (diff)
Merge pull request #1305 from Ryzee119/patch-1
OHCI: Fix array out of bounds issue
Diffstat (limited to 'src')
-rw-r--r--src/portable/ohci/ohci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/ohci/ohci.h b/src/portable/ohci/ohci.h
index cd90aa45a..8db097b06 100644
--- a/src/portable/ohci/ohci.h
+++ b/src/portable/ohci/ohci.h
@@ -159,7 +159,7 @@ typedef struct TU_ATTR_ALIGNED(256)
struct {
ohci_ed_t ed;
ohci_gtd_t gtd;
- }control[CFG_TUH_DEVICE_MAX+1];
+ }control[CFG_TUH_DEVICE_MAX+CFG_TUH_HUB+1];
// ochi_itd_t itd[OHCI_MAX_ITD]; // itd requires alignment of 32
ohci_ed_t ed_pool[HCD_MAX_ENDPOINT];