Skip to content

Commit c6cde72

Browse files
authored
Merge pull request hathach#1305 from Ryzee119/patch-1
OHCI: Fix array out of bounds issue
2 parents d56bbbb + 453ba52 commit c6cde72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/portable/ohci/ohci.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ typedef struct TU_ATTR_ALIGNED(256)
159159
struct {
160160
ohci_ed_t ed;
161161
ohci_gtd_t gtd;
162-
}control[CFG_TUH_DEVICE_MAX+1];
162+
}control[CFG_TUH_DEVICE_MAX+CFG_TUH_HUB+1];
163163

164164
// ochi_itd_t itd[OHCI_MAX_ITD]; // itd requires alignment of 32
165165
ohci_ed_t ed_pool[HCD_MAX_ENDPOINT];

0 commit comments

Comments
 (0)