Skip to contentSkip to conversation

libata: fix ata_eh_suspend() return value

PATCH Applied Tejun Heo 2 participants 2 messages Jan 26, 2007 – Jan 27, 2007 libata

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

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.

---
Jeff, this one is definitely for 2.6.20. Thanks.

drivers/ata/libata-eh.c +1 -1
index eee3525..52c85af 100644
@@ -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;
 }
 
 /**
Applied
#1 lore raw
Quoted 6 lines · Tejun Heo

ata_eh_suspend() was returning 0 regardless of failure. This bug has potential to lose data on suspend. Fix it.

---
Jeff, this one is definitely for 2.6.20. Thanks.

applied