Merge "otafault: Fix setting of have_eio_error." into nyc-dev

This commit is contained in:
Greg Kaiser 2016-03-14 20:44:35 +00:00 committed by Android (Google) Code Review
commit 0222db01fd

View file

@ -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) {