hwemul: fix code (out of bound access)
As noticed by bertrik some code accesses an array out of its bounds Change-Id: I891d0305213ca7081c386b306f87fe9e1ba3b6c5
This commit is contained in:
parent
9f19209c77
commit
4dd2c5277b
1 changed files with 0 additions and 1 deletions
|
@ -1475,7 +1475,6 @@ void main(uint32_t arg)
|
|||
qh_array[1].max_pkt_length = 1 << 29 | MAX_PKT_SIZE_EP0 << 16;
|
||||
qh_array[2].max_pkt_length = 1 << 29 | MAX_PKT_SIZE << 16;
|
||||
qh_array[3].max_pkt_length = 1 << 29 | MAX_PKT_SIZE << 16;
|
||||
qh_array[5].max_pkt_length = 1 << 29 | MAX_PKT_SIZE << 16;
|
||||
/* setup qh */
|
||||
REG_ENDPOINTLISTADDR = (unsigned int)qh_array;
|
||||
/* clear setup status */
|
||||
|
|
Loading…
Reference in a new issue