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:
a718728
)
libata: fix ata_eh_suspend() return value
author
Tejun Heo
<htejun@gmail.com>
Fri, 26 Jan 2007 11:10:25 +0000
(20:10 +0900)
committer
Jeff Garzik
<jeff@garzik.org>
Sat, 27 Jan 2007 08:21:26 +0000
(
03:21
-0500)
ata_eh_suspend() was returning 0 regardless of failure. This bug has
potential to lose data on suspend. Fix it.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-eh.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/libata-eh.c
b/drivers/ata/libata-eh.c
index 56cf59b60ec4595a8cd9d434f3dcc1db3f2fa2fd..748435807d689cbc8ac3aa511576dc87e656b427 100644
(file)
--- a/
drivers/ata/libata-eh.c
+++ b/
drivers/ata/libata-eh.c
@@
-1796,7
+1796,7
@@
static int ata_eh_suspend(struct ata_port *ap, struct ata_device **r_failed_dev)
*r_failed_dev = dev;
DPRINTK("EXIT\n");
- return
0
;
+ return
rc
;
}
/**