Skip to content

Commit

Permalink
libata: fix ata_eh_suspend() return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jan 27, 2007
1 parent a718728 commit 03ee5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 03ee5b1

Please sign in to comment.