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

Commit 2c605b45 authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3-msm: Fix out-of-bounds access in bus voting



The for loop in dwc3_msm_update_bus_bw() was using a NULL
condition rather than against ARRAY_SIZE(mdwc->icc_paths).
This can result in an out-of-bounds access if the memory
just beyond the array also happens to be non-zero.

Change-Id: Ib1f003f774b125a156ceb0070cd9d98a4d1f03ee
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 154900b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment