Fix the index out of bounds error when the modem FD is missing
Bug: 263783650 Test: atest VtsHalDumpstateTargetTest pass Change-Id: If21800c40a5424d70e10e6dd027cee6737e46863
This commit is contained in:
parent
8b3d01fb4d
commit
84333eb2dc
1 changed files with 1 additions and 1 deletions
|
@ -788,7 +788,7 @@ ndk::ScopedAStatus Dumpstate::dumpstateBoard(const std::vector<::ndk::ScopedFile
|
||||||
"Invalid mode");
|
"Invalid mode");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_fds.size() < 1) {
|
if (in_fds.size() < 2) {
|
||||||
ALOGE("no FD for dumpstate_board binary\n");
|
ALOGE("no FD for dumpstate_board binary\n");
|
||||||
} else {
|
} else {
|
||||||
int fd_bin = in_fds[1].get();
|
int fd_bin = in_fds[1].get();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue