Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=03ee5b1cdd09ed1ee2e75d0bc647fc5db66b9d07
Commit:     03ee5b1cdd09ed1ee2e75d0bc647fc5db66b9d07
Parent:     a718728f9e40ec79c0879ec6509a54fee214f5b2
Author:     Tejun Heo <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 26 20:10:25 2007 +0900
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Sat Jan 27 03:21:26 2007 -0500

    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]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 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 56cf59b..7484358 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;
 }
 
 /**
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to