libata: fix ata_eh_suspend() return value
PATCH 1/1 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 <[email protected]>
---
Jeff, this one is definitely for 2.6.20. Thanks.
drivers/ata/libata-eh.c +1 -1
@@ -1791,7 +1791,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; }/**
Jeff Garzik
AppliedQuoted 6 lines · Tejun Heo
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 <[email protected]>---
Jeff, this one is definitely for 2.6.20. Thanks.
applied