Skip to content

Commit

Permalink
Merge pull request raspberrypi#235 from P33M/rpi-3.6.y
Browse files Browse the repository at this point in the history
dwc_otg: fix potential use-after-free case in interrupt handler
  • Loading branch information
popcornmix committed Mar 1, 2013
2 parents 1dc7910 + acf987b commit 770459f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,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);
Expand Down

0 comments on commit 770459f

Please sign in to comment.