Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19097715 authored by Dan Albert's avatar Dan Albert
Browse files

This read accidentally got turned in to a write.

Too many mechanical changes in a row...

Bug: 19522788
Change-Id: Ic451792aab2700cdbdbb64529b99ff5f567918ad
parent 9255ad4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ static int read_block_adb(void* cookie, uint32_t block, uint8_t* buffer, uint32_
        return -EIO;
    }

    if (!WriteFdExactly(ad->sfd, buffer, fetch_size)) {
    if (!ReadFdExactly(ad->sfd, buffer, fetch_size)) {
        fprintf(stderr, "failed to read from adb host: %s\n", strerror(errno));
        return -EIO;
    }