mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 19:18:35 +00:00
Fix the index out of bounds error when the modem FD is missing
Bug: 263783650 Test: atest VtsHalDumpstateTargetTest pass Change-Id: I3795244e111bbf18b1a2a2a27a93242b4015baa7
This commit is contained in:
@@ -1400,7 +1400,7 @@ ndk::ScopedAStatus Dumpstate::dumpstateBoard(const std::vector<::ndk::ScopedFile
|
||||
"Invalid mode");
|
||||
}
|
||||
|
||||
if (in_fds.size() < 1) {
|
||||
if (in_fds.size() < 2) {
|
||||
ALOGE("no FD for dumpstate_board binary\n");
|
||||
} else {
|
||||
int fd_bin = in_fds[1].get();
|
||||
|
||||
Reference in New Issue
Block a user