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

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

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

parents 6a143e01 1d239e70
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(this_sg_len <= 0)) {
		if (likely(sg && (this_sg_len <= 0))) {
			if (--i <= 0 || len <= 0)
				break;
			sg = sg_next(sg);