Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent null vector accessing in USB HAL
If getPortStatusHelper() failed to allocate currentPortStatus_1_2 size, it should not access this vector, otherwise it would cause crash. Bug: 142366879 Test: try to adb root and re-connect USB Change-Id: I0d0d9cd1dccd646ce270b562f2922da15338bfc1 Signed-off-by: pumahsu <[email protected]>
- Loading branch information