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

Commit f4300bc1 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

otafault: Fix setting of have_eio_error.

There was one case (ota_fsync, under TARGET_SYNC_FAULT, when the
filename was cached) where we were not setting have_eio_error
prior to returning.  We fix that.

Change-Id: I2b0aa61fb1e821f0e77881aba04db95cd8396812
parent 0ba21cff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -189,8 +189,8 @@ int ota_fsync(int fd) {
            && FilenameCache[fd] == FaultFileName) {
        FaultFileName = "";
        errno = EIO;
        return -1;
        have_eio_error = true;
        return -1;
    } else {
        int status = fsync(fd);
        if (status == -1 && errno == EIO) {