libata: fix ata_eh_suspend() return value
authorTejun Heo <htejun@gmail.com>
Fri, 26 Jan 2007 11:10:25 +0000 (20:10 +0900)
committerJeff 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

index 56cf59b60ec4595a8cd9d434f3dcc1db3f2fa2fd..748435807d689cbc8ac3aa511576dc87e656b427 100644 (file)
@@ -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;
 }
 
 /**