USB: fix potential qtd use-after-free case in interrupt handler
This commit is contained in:
parent
88d9ead294
commit
40149bca57
1 changed files with 2 additions and 1 deletions
|
|
@ -1948,7 +1948,8 @@ int32_t dwc_otg_hcd_handle_hc_n_intr (dwc_otg_hcd_t *_dwc_otg_hcd, uint32_t _num
|
|||
retval |= handle_hc_nak_intr(_dwc_otg_hcd, hc, hc_regs, qtd);
|
||||
}
|
||||
if (hcint.b.ack) {
|
||||
retval |= handle_hc_ack_intr(_dwc_otg_hcd, hc, hc_regs, qtd);
|
||||
if(!hcint.b.chhltd)
|
||||
retval |= handle_hc_ack_intr(_dwc_otg_hcd, hc, hc_regs, qtd);
|
||||
}
|
||||
if (hcint.b.nyet) {
|
||||
retval |= handle_hc_nyet_intr(_dwc_otg_hcd, hc, hc_regs, qtd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue