Merge "Fix the index out of bounds error when the modem FD is missing"

This commit is contained in:
Alex Hong 2023-01-13 06:26:41 +00:00 committed by Android (Google) Code Review
commit e040b0838a

View file

@ -783,7 +783,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();