diff options
author | Tejun Heo <htejun@gmail.com> | 2007-01-26 12:10:25 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-01-27 09:21:26 +0100 |
commit | 03ee5b1cdd09ed1ee2e75d0bc647fc5db66b9d07 (patch) | |
tree | 10ecde7e2c008406bdbc13bd0e1fd22246033b3b | |
parent | ahci: port_no should be used when clearing IRQ in ahci_thaw() (diff) | |
download | linux-03ee5b1cdd09ed1ee2e75d0bc647fc5db66b9d07.tar.xz linux-03ee5b1cdd09ed1ee2e75d0bc647fc5db66b9d07.zip |
libata: fix ata_eh_suspend() return value
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>
-rw-r--r-- | drivers/ata/libata-eh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 56cf59b60ec4..748435807d68 100644 --- 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; } /** |