forked from Minki/linux
usb: musb: host: compare status for negative error values
Variable d is a struct usb_iso_packet_descriptor. The status filed is usually negative when an error happens. Signed-off-by: Márton Németh <nm127@freemail.hu> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
d6d0f665ad
commit
72887c8644
@ -1575,7 +1575,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
|
|||||||
/* even if there was an error, we did the dma
|
/* even if there was an error, we did the dma
|
||||||
* for iso_frame_desc->length
|
* for iso_frame_desc->length
|
||||||
*/
|
*/
|
||||||
if (d->status != EILSEQ && d->status != -EOVERFLOW)
|
if (d->status != -EILSEQ && d->status != -EOVERFLOW)
|
||||||
d->status = 0;
|
d->status = 0;
|
||||||
|
|
||||||
if (++qh->iso_idx >= urb->number_of_packets)
|
if (++qh->iso_idx >= urb->number_of_packets)
|
||||||
|
Loading…
Reference in New Issue
Block a user