projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad8c31b
)
[SCSI] sd: fix return value of sd_sync_cache()
author
Tejun Heo
<htejun@gmail.com>
Tue, 20 Mar 2007 15:07:18 +0000
(
00:07
+0900)
committer
James Bottomley
<jejb@mulgrave.il.steeleye.com>
Tue, 20 Mar 2007 16:33:32 +0000
(11:33 -0500)
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>
drivers/scsi/sd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/sd.c
b/drivers/scsi/sd.c
index 12e18bb5456a250eaec6e684feccdd8bbfaf37a6..3dda77c31f504e50519232bbae9e7345381a3e28 100644
(file)
--- 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)