dect
/
linux-2.6
Archived
13
0
Fork 0

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

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

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
Tejun Heo 2007-03-21 00:07:18 +09:00 committed by James Bottomley
parent ad8c31bb69
commit 3721050afc
1 changed files with 3 additions and 1 deletions

View File

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