Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3721050afc6cb6ddf6de0f782e2054ebcc225e9b Commit: 3721050afc6cb6ddf6de0f782e2054ebcc225e9b Parent: ad8c31bb69d60c0c6bc6431bccdf67e5a96c0d31 Author: Tejun Heo <[EMAIL PROTECTED]> AuthorDate: Wed Mar 21 00:07:18 2007 +0900 Committer: James Bottomley <[EMAIL PROTECTED]> CommitDate: Tue Mar 20 11:33:32 2007 -0500
[SCSI] sd: fix return value of sd_sync_cache() sd_sync_cache() should return -errno on error, fix it. Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> Signed-off-by: James Bottomley <[EMAIL PROTECTED]> --- drivers/scsi/sd.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 12e18bb..3dda77c 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -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) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html