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

Commit 537388fc 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: Fix smask_out array access to a non verified index"

parents ebe9e851 26abecf3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1027,8 +1027,11 @@ iso_stream_init (
			/* c-mask as specified in USB 2.0 11.18.4 3.c */
			tmp = (1 << (hs_transfers + 2)) - 1;
			stream->raw_mask |= tmp << (8 + 2);
		} else
		} else if (hs_transfers <=
				(sizeof(smask_out) / sizeof(smask_out[0]))) {
			stream->raw_mask = smask_out [hs_transfers - 1];
		}

		bandwidth = stream->usecs + stream->c_usecs;
		bandwidth /= interval << 3;