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

Commit d085ff0a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Revert "usb: host: Verify sg before accessing it in qh_urb_transaction""

parents 5538512d 767cd797
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -683,7 +683,7 @@ qh_urb_transaction (
		if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0)
			token ^= QTD_TOGGLE;

		if (likely(sg && (this_sg_len <= 0))) {
		if (likely(this_sg_len <= 0)) {
			if (--i <= 0 || len <= 0)
				break;
			sg = sg_next(sg);