aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/libata-core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 927b692d723c..c6c316fc8379 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -3653,9 +3653,13 @@ int sata_link_hardreset(struct ata_link *link, const unsigned long *timing,
3653 if (check_ready) 3653 if (check_ready)
3654 rc = ata_wait_ready(link, deadline, check_ready); 3654 rc = ata_wait_ready(link, deadline, check_ready);
3655 out: 3655 out:
3656 if (rc && rc != -EAGAIN) 3656 if (rc && rc != -EAGAIN) {
3657 /* online is set iff link is online && reset succeeded */
3658 if (online)
3659 *online = false;
3657 ata_link_printk(link, KERN_ERR, 3660 ata_link_printk(link, KERN_ERR,
3658 "COMRESET failed (errno=%d)\n", rc); 3661 "COMRESET failed (errno=%d)\n", rc);
3662 }
3659 DPRINTK("EXIT, rc=%d\n", rc); 3663 DPRINTK("EXIT, rc=%d\n", rc);
3660 return rc; 3664 return rc;
3661} 3665}