Skip to content

Commit 770459f

Browse files
committed
Merge pull request #235 from P33M/rpi-3.6.y
dwc_otg: fix potential use-after-free case in interrupt handler
2 parents 1dc7910 + acf987b commit 770459f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,8 @@ int32_t dwc_otg_hcd_handle_hc_n_intr(dwc_otg_hcd_t * dwc_otg_hcd, uint32_t num)
22232223
retval |= handle_hc_nak_intr(dwc_otg_hcd, hc, hc_regs, qtd);
22242224
}
22252225
if (hcint.b.ack) {
2226-
retval |= handle_hc_ack_intr(dwc_otg_hcd, hc, hc_regs, qtd);
2226+
if(!hcint.b.chhltd)
2227+
retval |= handle_hc_ack_intr(dwc_otg_hcd, hc, hc_regs, qtd);
22272228
}
22282229
if (hcint.b.nyet) {
22292230
retval |= handle_hc_nyet_intr(dwc_otg_hcd, hc, hc_regs, qtd);

0 commit comments

Comments
 (0)