aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/sd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 12e18bb5456a..3dda77c31f50 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -766,7 +766,9 @@ static int sd_sync_cache(struct scsi_disk *sdkp)
766 sd_print_sense_hdr(sdkp, &sshdr); 766 sd_print_sense_hdr(sdkp, &sshdr);
767 } 767 }
768 768
769 return res; 769 if (res)
770 return -EIO;
771 return 0;
770} 772}
771 773
772static int sd_issue_flush(struct device *dev, sector_t *error_sector) 774static int sd_issue_flush(struct device *dev, sector_t *error_sector)