mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-28 13:35:33 +00:00
Fix the index out of bounds error when the modem FD is missing am: d6f061f45a am: f918ea1dc9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20877560 Change-Id: I41ffa93760dde5fe4bde4dfb3655eaaf2f6f5f51 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -804,7 +804,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