Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72887c86 authored by Márton Németh's avatar Márton Németh Committed by Felipe Balbi
Browse files

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: default avatarMárton Németh <nm127@freemail.hu>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent d6d0f665
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1575,7 +1575,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
			/* even if there was an error, we did the dma
			 * for iso_frame_desc->length
			 */
			if (d->status != EILSEQ && d->status != -EOVERFLOW)
			if (d->status != -EILSEQ && d->status != -EOVERFLOW)
				d->status = 0;

			if (++qh->iso_idx >= urb->number_of_packets)