Merge "Fix the index out of bounds error when the modem FD is missing"
This commit is contained in:
commit
e040b0838a
1 changed files with 1 additions and 1 deletions
|
@ -783,7 +783,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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue