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

Commit 3721050a authored by Tejun Heo's avatar Tejun Heo Committed by James Bottomley
Browse files

[SCSI] sd: fix return value of sd_sync_cache()



sd_sync_cache() should return -errno on error, fix it.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent ad8c31bb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -766,7 +766,9 @@ static int sd_sync_cache(struct scsi_disk *sdkp)
			sd_print_sense_hdr(sdkp, &sshdr);
	}

	return res;
	if (res)
		return -EIO;
	return 0;
}

static int sd_issue_flush(struct device *dev, sector_t *error_sector)