usb: host: Fix array access to a non verified index
Fix code quality issues found by the automatic checking tool, that can cause out of bound access to the port_status and hostpc arrays. Verify wIndex before accessing the arrays in this index. Change-Id: Iec7b7b6b66a318e4e97b23ce243e7a128dbf795a CRs-Fixed: 566927 Signed-off-by:Danny Segal <dsegal@codeaurora.org> Signed-off-by:
Maya Erez <merez@codeaurora.org>
Loading
Please register or sign in to comment