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

Commit c19213fd authored by Wenhao Wang's avatar Wenhao Wang Committed by Automerger Merge Worker
Browse files

trusty:storageproxyd: Fix return paths on errors am: c66e99bf

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/15312384

Change-Id: I459d9336f2480b7c2df3e6182ead5f7d777615be
parents 24fe6227 c66e99bf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -212,6 +212,7 @@ static int send_ufs_rpmb_req(int sg_fd, const struct storage_rpmb_send_req* req)
        rc = ioctl(sg_fd, SG_IO, &io_hdr);
        if (rc < 0) {
            ALOGE("%s: ufs ioctl failed: %d, %s\n", __func__, rc, strerror(errno));
            goto err_op;
        }
        write_buf += req->reliable_write_size;
    }
@@ -225,6 +226,7 @@ static int send_ufs_rpmb_req(int sg_fd, const struct storage_rpmb_send_req* req)
        rc = ioctl(sg_fd, SG_IO, &io_hdr);
        if (rc < 0) {
            ALOGE("%s: ufs ioctl failed: %d, %s\n", __func__, rc, strerror(errno));
            goto err_op;
        }
        write_buf += req->write_size;
    }
@@ -240,6 +242,8 @@ static int send_ufs_rpmb_req(int sg_fd, const struct storage_rpmb_send_req* req)
            ALOGE("%s: ufs ioctl failed: %d, %s\n", __func__, rc, strerror(errno));
        }
    }

err_op:
    return rc;
}